Custom Permissions
This module allows administrators to create and manage custom permissions, assigning them to specific roles. These custom permissions can be tied to particular paths or routes within the Drupal site, controlling access to those areas. Historically, it also created several default permissions, though some of these have since been incorporated into Drupal core.
This very light-weight module allows additional permissions to be created and managed through a administration form. It uses the menu access system to allow or disallow access to it.
On the administration page a user is able to create a permission with name and path(s).
These permissions can then be assigned to roles on the permissions page.
Important security note: If any permission has a given path, any person with a role having that permission can visit that path.
The name of the module changed from "Site Configuration Permissions" to "Custom Permissions" in the 7.x version and above.
8.x-2.x
The current supported branch. Custom permissions use routes instead of paths, in line with modern Drupal. As of 8.x-1.x through the work of utiks, custom permissions are configuration entities, exportable via features and configuration manager. From 6.x-2.x on, the module allows additional permissions to be created and managed through a administration form.
On the administration page a user can set the permission name and permission path(s)
By default the following permissions are created:
- Administer account settings
- Administer date-time
- Administer error logs
- Administer file system
(Some of the permissions created historically by default in this module (such as "administer modules"!), have become new, non-custom, Drupal core permissions.)
Similar projects
This module should really be used as a last resort— if there is a module specifically for adding more fine-grained permissions in some category, it is probably best to use that. Some we know about:
Supporting this Module
You can support Agaric's overall contributions to Drupal and a bit beyond by supporting Drutopia at opencollective.com/drutopia. Thanks!!