Skip to content

Commit

Permalink
Correct permission name
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Nov 11, 2020
1 parent eff7428 commit 53fddf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions civicrm_newsletter.module
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function _civicrm_newsletter_access($callback, $profile_name) {
switch ($callback) {
case '_civicrm_newsletter_subscription_form':
$access = (
user_access('access civicrm all newsletter subscription forms')
user_access('access all civicrm newsletter subscription forms')
|| user_access('access civicrm newsletter subscription form ' . $profile_name)
);
break;
Expand Down Expand Up @@ -89,7 +89,7 @@ function civicrm_newsletter_permission() {
'title' => t('Administer CiviCRM Advanced Newsletter Management'),
'description' => t('Allow users to configure the module.')
);
$permissions['access civicrm all newsletter subscription forms'] = array(
$permissions['access all civicrm newsletter subscription forms'] = array(
'title' => t('Access all newsletter subscription forms'),
'description' => t('Allow users to access the public newsletter subscription form for any profile.'),
);
Expand Down

0 comments on commit 53fddf3

Please sign in to comment.