Lightning creates several roles and permissions during installation for use with content creation and review, and are directly based on the available content types. These roles are part of the Lightning Roles component.
For experienced developers, these roles may be unnecessary, as having many additional defined roles can cause the role management on the website to become unmanageable.
Although this feature is installed by default, it can be disabled during either of the following situations:
Other Lightning components that introduce roles will have those roles as an optional configuration, which will carry a dependency on
Disabling role creation at install
Because Lightning uses sub-profiles during the installation process, you can use them to disable the Lightning Roles component in a sub-profile before installing Lightning.
By default, the Lightning Roles modules is located at
For more information on creating and editing installation profiles, see How to Write a Drupal 8 Installation Profile.
Disabling role creation after install
If, after installation, you want to prevent Lightning Roles from creating additional content creation and review roles, complete the following steps:
- Sign in to your Lightning website as an administrator.
- Navigate to Configuration > Lightning > Roles.
- Clear the check boxes for the role types that you do not want to be created by the Lightning Roles component.
- Click Save configuration.