function apply_for_role_apply_access in Apply for role 6
Check that the user is allowed to create applications and that there are roles that they don't yet belong to.
1 string reference to 'apply_for_role_apply_access'
- apply_for_role_menu in ./
apply_for_role.module - Implementation of hook_menu().
File
- ./
apply_for_role.module, line 41 - Allows users to apply for roles.
Code
function apply_for_role_apply_access($account) {
return !empty($account->uid) && $GLOBALS['user']->uid == $account->uid && user_access('apply for roles', $account);
}