function workbench_access_assign_user in Workbench Access 7
Access callback for user sections tab.
1 string reference to 'workbench_access_assign_user'
- workbench_access_menu in ./
workbench_access.module - Implements hook_menu().
File
- ./
workbench_access.module, line 192 - Workbench Access module file.
Code
function workbench_access_assign_user($account) {
// Can the current user assign editors and is
// the account being viewed eligible.
if (user_access('assign workbench access') && user_access('access workbench access by role', $account)) {
return TRUE;
}
return FALSE;
}