}
// Check for target and assignee contacts.
- // First check for supper permission.
+ // First check for super permission.
$supPermission = 'view all contacts';
if ($action == CRM_Core_Action::UPDATE) {
$supPermission = 'edit all contacts';
$actionOperations = ['view', 'edit', 'delete'];
if (in_array($operation, $actionOperations)) {
- //do cache when user has non/supper permission.
+ // Do cache when user has non-super permission.
static $allowOperations;
if (!is_array($allowOperations) ||
'edit',
])
) {
- //do we have supper permission.
+ // Check for super permission.
if (in_array('access all cases and activities', $hasPermissions[$operation])) {
$allowOperations[$operation] = $allow = TRUE;
}
}
}
else {
- //use cache.
- //here contact might have supper/non permission.
+ // Use cache; user might have non-super permission.
$allow = $allowOperations[$operation];
}
}