Unique capabilities
-
Hi there! I started using this plugin but I have to restrict access of some users to this gallery management only without giving them permissions to edit pages. Currently plugin uses “edit_pages” capability defined in $minimum_capability (/php/admin/main.php) and $minimumCapability (/admin/class-gallery-factory-admin.php).
What I’d like suggest is to define unique capability name (at least one), e.g. “manage_gallery_factory” and add it to Super Admin, Administrator and Editor roles:
get_role(‘editor’)->add_cap(‘manage_gallery_factory’);This is very simple solution which will give administrators much more freedom with defining custom access roles. What do you think?
- The topic ‘Unique capabilities’ is closed to new replies.