function bakery_uncrumble_access in Bakery Single Sign-On System 7.2
Same name and namespace in other branches
- 6.2 bakery.module \bakery_uncrumble_access()
- 6 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 - Implements hook_menu().
File
- ./
bakery.module, line 1792 - Module file for the Bakery.
Code
function bakery_uncrumble_access() {
global $user;
$access = FALSE;
if (!$user->uid) {
if (isset($_SESSION['BAKERY_CRUMBLED']) && $_SESSION['BAKERY_CRUMBLED']) {
$access = TRUE;
}
}
return $access;
}