Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Introduction

Roles in Drupal 8 are configuration objects and the permissions are a property of the role.
This means that permissions and roles are tightly linked for the configuration management.

Config Split and Config Ignore allow to separate some of the configuration for different environments. They do, however, not treat permissions separate from roles.

This project bridges the gap by in turn also using Config Filter to add or remove permissions from roles when importing or exporting configuration.

Help with the UI wanted

The beta1 version already does the filtering but the form for configuring this module is not very user friendly yet, patches for an improved UI are very welcome.

Key functionality

Modes

The role_split configuration keeps track of which permissions to add or remove. The following modes of operation are implemented.

Split

The roles and permissions are removed from the export and maintained only in
the configuration of the role split filter. When importing, the permissions
defined in the role are merged with the ones defined in the filter. When
exporting the permissions are *split* and the role will not have the permission
all the while the role in the active configuration will have it.

Fork

The permissions defined in the filter configuration are merged when importing.
But when exporting the exported role is checked first and permissions that
are already exported will not be removed from the export. Permissions that
are active in the sites configuration and defined in the filter but not in
the role in the sync directory are not added to the role in the sync directory.

Exclude

The permissions that are attached to a role in the sync directory that are
defined in a exclude filter are removed and will not be part of the active
configuration when importing. When exporting the permissions which have been
excluded will be added back to the role in the sync directory, provided it
already has them there.

See README for further information.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Releases

Version Type Core Release date
8.x-1.0-beta5 Pre-release Aug 27, 2024
8.x-1.0-beta4 Pre-release Oct 18, 2023