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
'edit contributions',
),
);
+ $permissions['contribution_recur'] = $permissions['payment'];
// Custom field permissions
$permissions['custom_field'] = array(
$permissions['state_province'] = array(
'get' => array(
'access CiviCRM',
- )
+ ),
);
// Price sets are shared by several components, user needs access to at least one of them