compucorp / uk.co.compucorp.membershipextras

Membership Extras for CiviCRM
Other
5 stars 8 forks source link

CIVIPLUS-176: Add administer Membership Extras permission #381

Closed erawat closed 3 years ago

erawat commented 3 years ago

Overview

Currently, the direct debit configuration can only be accessed with a user that has permission administer CiviCRM. In some systems like SaaS platform or even in some organisations, that may not want to give administer CiviCRM to the site administer but allows access to the certain admin pages and forms.

This PR adds new administer MembershipExtras permission and assign this permission to existing configuration pages that allows a system admin to assign a new permission to other roles, so the user with the role can access the setting pages without having a global administer CiviCRM permission.

Before

Only user that has administer CiviCRM permission can access Membership Extras configuration pages.

After

Either user that has administer CiviCRM or administer MembershipExtras permission can access Membership Extras configuration pages.