function redhen_activity_access in RedHen CRM 7
Determine access to RedHen activity.
Parameters
$op: The operation being performed. One of 'view', 'update', 'create' or 'delete'.
$parent_entity: Message parent entity.
$account: The user to check for. Leave it to NULL to check for the current user.
1 string reference to 'redhen_activity_access'
- redhen_activity_menu in modules/
redhen_activity/ redhen_activity.module - Implements hook_menu().
File
- modules/
redhen_activity/ redhen_activity.module, line 204
Code
function redhen_activity_access($op, $parent_entity, $account = NULL) {
if (entity_access($op, $parent_entity
->entityType(), $parent_entity, $account)) {
if ($op == 'view' && user_access('access redhen activity', $account)) {
return TRUE;
}
}
return FALSE;
}