This module aims to allow "non-admin" Roles (ie: Roles that does not have the administer permissions permission) to manage and delegate permissions for other "lower" Roles.

The role hierarchy (that's why we use the lower/higher terminology) is taken from the Core Roles weight configuration.
So higher (more permissive) roles would be able to handle permissions to lower (less permissive) roles.

We did not find any other Contrib module providing this functionality, and that's why we created it while back.
I've just checked again and I could not find any similar projects.

Project link

https://www.drupal.org/project/delegate_permissions

Reviews done for other projects

  1. https://www.drupal.org/project/projectapplications/issues/3301746
  2. https://www.drupal.org/project/projectapplications/issues/3301250

Comments

anairamzap created an issue. See original summary.

avpaderno’s picture

Priority: Normal » Major
avpaderno’s picture

Title: [D9] Delegate Permissions » [1.0.x] Delegate Permissions
Issue summary: View changes
klausi’s picture

Status: Needs review » Fixed

manual review:

  1. hook_bypassed_provider_map_alter(): all hooks provided by a module should be prefixed with the module name. So this could be hook_delegate_permissions_bypassed_provider_map_alter().
  2. At first I did not understand why the DelegatePermissionsFilter config filter is needed. I think you have it to force lower roles to not have any permissions the higher roles do not have, is that the use case? Best add a code comment.

Otherwise looks good to me.

Thanks for your contribution, Mariana!

I updated your account so you can opt into security advisory coverage now.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.