Problem/Motivation
Drupal currently uses permission with machine names like access all views
, and this is inconsistent with machine names found elsewhere in Drupal (where the convention is snake_case_with_underscores
. To add to the confusion, some permissions have a mixture of spaces and underscores (such as permissions for particular node types, etc.).
Finally, if permissions are someday defined in YAML (as is proposed in #2295469: Add support for static permission definitions with *.permissions.yml), then permissions keys will need to be quoted, and will not match most other YAML keys as seen in Drupal configuration.
Proposed resolution
Enforce proper machine names like access_all_views
instead of the machine names with spaces for all permissions.
Remaining tasks
TODO.
User interface changes
None.
API changes
Permissions should only use machine names. This should probably be documented somewhere.