function deploy_ui_user_access in Deploy - Content Staging 7.3
Access callback handler.
This is a bit of a hack to prevent actions being rendered on the VBO confirmation form.
Parameters
string $string: The permission, such as "administer nodes", being checked for.
object $account: The account to check, if not given use currently logged in user.
Return value
bool Boolean TRUE if the current user has the requested permission.
1 string reference to 'deploy_ui_user_access'
- deploy_ui_menu in modules/
deploy_ui/ deploy_ui.module - Implementation of hook_menu().
File
- modules/
deploy_ui/ deploy_ui.module, line 52 - Deploy Admin UI
Code
function deploy_ui_user_access($string, $account = NULL, $deny_for_post = TRUE) {
if (!user_access($string, $account)) {
return FALSE;
}
if ('POST' == $_SERVER['REQUEST_METHOD'] && $deny_for_post && 'view' == arg(6)) {
return FALSE;
}
return TRUE;
}