function cas_menu_check in CAS 6
Same name and namespace in other branches
- 6.2 cas.module \cas_menu_check()
Access function used to make sure cas menu doesn't show up when Not needed.
Return value
boolean
1 string reference to 'cas_menu_check'
- cas_menu in ./
cas.module - Implements hook_menu.
File
- ./
cas.module, line 28
Code
function cas_menu_check() {
global $user;
$access = false;
if ($user->uid == 0) {
$access = TRUE;
}
if (strpos($_GET['q'], 'admin/build/menu') !== false) {
$access = TRUE;
}
return $access;
}