You are here

function bakery_uncrumble_access in Bakery Single Sign-On System 6.2

Same name and namespace in other branches
  1. 6 bakery.module \bakery_uncrumble_access()
  2. 7.2 bakery.module \bakery_uncrumble_access()

Only let people with actual problems mess with uncrumble.

1 string reference to 'bakery_uncrumble_access'
bakery_menu in ./bakery.module
Implementation of hook_menu().

File

./bakery.module, line 1667

Code

function bakery_uncrumble_access() {
  global $user;
  $access = FALSE;
  if (!$user->uid) {
    if (isset($_SESSION['BAKERY_CRUMBLED']) && $_SESSION['BAKERY_CRUMBLED']) {
      $access = TRUE;
    }
  }
  return $access;
}