[size=5]Hide employee information from non-admins
- Open include/globalControlLinks.php
- In the file go to:
}
$global_control_links = array(
‘linkinfo’ => array($app_strings=> ‘index.php?module=Employees&action=index&query=true’),
‘submenu’ => ‘’
);
3. add the following line
if (is_admin ($current_user))
4. The code will look like code below
}
if (is_admin ($current_user))
$global_control_links = array(
‘linkinfo’ => array($app_strings=> ‘index.php?module=Employees&action=index&query=true’),
‘submenu’ => ‘’
);
5. Non-admins will not be able to view employees[/size]