You are here

function cas_menu_check in CAS 6.2

Same name and namespace in other branches
  1. 6 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 88

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;
}