function authcache_debug_access in Authenticated User Page Caching (Authcache) 7.2
Returns true if the currently logged in user has access to debug functions.
4 calls to authcache_debug_access()
- authcache_debug_user_login in modules/
authcache_debug/ authcache_debug.module - Implements hook_user_login().
- hook_authcache_canceled in ./
authcache.api.php - Perform an action when page caching has been canceled.
- hook_authcache_excluded in ./
authcache.api.php - Perform an action when a page has been excluded from caching.
- hook_authcache_precluded in ./
authcache.api.php - Perform an action if next page request will not be served from cache.
1 string reference to 'authcache_debug_access'
- authcache_debug_menu in modules/
authcache_debug/ authcache_debug.module - Implements hook_menu().
File
- modules/
authcache_debug/ authcache_debug.module, line 302 - Debug widget for Authcache.
Code
function authcache_debug_access($account = NULL) {
global $user;
if (!isset($account)) {
$account = $user;
}
if (variable_get('authcache_debug_all', FALSE)) {
return TRUE;
}
elseif (!$account->uid) {
return FALSE;
}
else {
return in_array($account->name, variable_get('authcache_debug_users', array()));
}
}