Introduce a new "bypass entity legal acceptance" permission

Created on 10 September 2024, 7 months ago
Updated 11 September 2024, 7 months ago

Problem/Motivation

At the moment, only user roles with the "administer entity_legal" permission bypass the requirement to accept new documents or versions. See \Drupal\entity_legal\EntityLegalPluginBase::getDocumentsForMethod for reference.
It would be useful to allow specific roles to bypass this requirement, without having to grant the "administer entity_legal" permission.

Proposed resolution

Introduce a new "bypass entity legal acceptance" permission.
Modify getDocumentsForMethod to check for either "administer entity_legal" or the new permission.

Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

🇧🇪Belgium herved

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024