Skip to content

Commit

Permalink
Merge pull request #15 from progressivetech/perms-update
Browse files Browse the repository at this point in the history
use new permission format
  • Loading branch information
agileware-justin authored Aug 9, 2024
2 parents 23ebc77 + 97c7690 commit cc16d11
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions elections.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,16 +488,14 @@ function addPlaceholderTokenValues($tokens, $customToken, $cids, &$values) {
*
*/
function elections_civicrm_permission(&$permissions) {
$permissions += array(
'administer Elections' => array(
ts('CiviCRM: administer elections', array('domain' => 'au.com.agileware.elections')),
ts('Grants the necessary permissions for administrating elections in CiviCRM.', array('domain' => 'au.com.agileware.elections')),
),
'view Elections' => array(
ts('CiviCRM: view elections', array('domain' => 'au.com.agileware.elections')),
ts('Grants the necessary permissions for participating in elections.', array('domain' => 'au.com.agileware.elections')),
),
);
$permissions['administer Elections'] = [
'label' => E::ts('CiviCRM: administer elections'),
'description' => E::ts('Grants the necessary permissions for administrating elections in CiviCRM.'),
];
$permissions['view Elections'] = [
'label' => E::ts('CiviCRM: view elections'),
'description' => E::ts('Grants the necessary permissions for participating in elections.'),
];
}

/**
Expand Down

0 comments on commit cc16d11

Please sign in to comment.