foreach ($permission as $orPerm) {
if (self::check($orPerm)) {
//one of our 'or' permissions has succeeded - stop checking this permission
- return TRUE;;
+ return TRUE;
}
}
//none of our our conditions was met
'access CiviCRM',
'delete in CiviCase',
),
+ 'restore' => array(
+ 'administer CiviCase',
+ ),
+ 'merge' => array(
+ 'administer CiviCase',
+ ),
'default' => array(
// At minimum the user needs one of the following. Finer-grained access is controlled by CRM_Case_BAO_Case::addSelectWhereClause
array('access my cases and activities', 'access all cases and activities'),
'edit contributions',
),
);
+ $permissions['contribution_recur'] = $permissions['payment'];
// Custom field permissions
$permissions['custom_field'] = array(
// Loc block is only used for events
$permissions['loc_block'] = $permissions['event'];
+ $permissions['state_province'] = array(
+ 'get' => array(
+ 'access CiviCRM',
+ ),
+ );
+
// Price sets are shared by several components, user needs access to at least one of them
$permissions['price_set'] = array(
'default' => array(