function _authcache_debug_access in Authenticated User Page Caching (Authcache) 7
Returns true if the currently logged in user has access to debug functions.
4 calls to _authcache_debug_access()
- authcache_authcache_info in ./
authcache.module - Implements hook_authcache_info().
- authcache_init in ./
authcache.module - Implements hook_init().
- authcache_user_login in ./
authcache.module - Implements hook_user().
- _authcache_shutdown_save_page in ./
authcache.helpers.inc - Save page to cache
File
- ./
authcache.helpers.inc, line 474 - Helper functions for the Authcache module (no Drupal hooks here).
Code
function _authcache_debug_access() {
global $user;
if (variable_get('authcache_debug_all', FALSE)) {
return TRUE;
}
elseif (!$user->uid) {
return FALSE;
}
else {
return in_array($user->name, variable_get('authcache_debug_users', array()));
}
}