function revisioning_user_all_access in Revisioning 6.3
Same name and namespace in other branches
- 6.4 revisioning_api.inc \revisioning_user_all_access()
Return TRUE only if the user account has ALL of the supplied permissions.
Parameters
$permissions: An array of permissions (strings)
$account: The user account object. Defaults to the current user if omitted.
Return value
bool
1 string reference to 'revisioning_user_all_access'
- revisioning_menu in ./
revisioning.module - Implementation of hook_menu().
File
- ./
revisioning_api.inc, line 552 - API functions of Revisioning module
Code
function revisioning_user_all_access($permissions, $account = NULL) {
foreach ($permissions as $permission) {
if (!user_access($permission, $account)) {
return FALSE;
}
}
return TRUE;
}