CRM_Utils_System::setTitle(ts('Include Profiles') . " ($title)");
}
+ if (CRM_Core_Permission::check('administer CiviCRM')) {
+ $this->assign('perm', 1);
+ }
$ufJoinParams = array(
'module' => 'CiviContribute',
'entity_table' => 'civicrm_contribution_page',
$permissions['uf_group'] = array(
'create' => array(
- 'access CiviCRM',
- 'manage event profiles',
+ array(
+ 'administer CiviCRM',
+ 'manage event profiles',
+ ),
),
'get' => array(
'access CiviCRM',
),
'update' => array(
- 'access CiviCRM',
- 'manage event profiles',
+ array(
+ 'administer CiviCRM',
+ 'manage event profiles',
+ ),
),
);
$permissions['uf_field'] = $permissions['uf_group'];
- $permissions['uf_field']['delete'] = array('access CiviCRM', 'manage event profiles');
+ $permissions['uf_field']['delete'] = array(
+ array(
+ 'administer CiviCRM',
+ 'manage event profiles',
+ ),
+ );
$permissions['option_value'] = $permissions['uf_group'];
$permissions['option_group'] = $permissions['option_value'];