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