It is easy to accidentally make changes on the permissions page which can cause an administrator to not be able to administer. I know because I just did it, and it required going to user 1 to fix it. Given the hundreds of check boxes on the page, it would be better if Drupal provided a way to confirm permission changes before saving the changes to the database.

Example:

Goal: Set permissions for Medium Permission User, Low Permission User, and Administrator.

Current steps:
1. Go to https://sfmta.prod.acquia-sites.com/admin/people/permissions
2. Filter to show roles Low Permission User, Medium Permission User, Administrator.
3. Display all modules.
4. Click Filter Permissions.
5. Check permissions to be used.
6. As the page is very long, accidentally click permissions that you didn't mean to click.
7. Save permissions.
8. Suddenly not be able to access /admin

New feature steps:

1. Go to https://sfmta.prod.acquia-sites.com/admin/people/permissions
2. Filter to show roles Low Permission User, Medium Permission User, Administrator.
3. Display all modules.
4. Click Filter Permissions.
5. Check permissions to be used.
6. As the page is very long, accidentally click permissions that you didn't mean to click.
7. Save permissions.
8. Get confirmation message:

You have requested the following permission changes:
Low Permission User will gain [permission 1], [permission 2]
Medium Permission User will gain [permission 1], [permission 2], [permission 3]
Administrator will gain [permission 3]
Administrator will lose Administer Permissions
[continue] [return to edit] [cancel]

Comments

Version: 7.22 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Anybody’s picture

Version: 7.x-dev » 10.0.x-dev
Issue summary: View changes

Switching to 10.x if this should have any future :) And the idea is still good and relevant!

longwave’s picture

Version: 10.0.x-dev » 9.3.x-dev

No reason to wait until 10.x, this could be added in a minor release.

ahaomar’s picture

Is any update regarding this? I am also looking for same kind of functionality for my site. Will be great if any know how we can achieve that or any community module available for that please guide me

ahaomar’s picture

Is any update regarding this? I am also looking for same kind of functionality for my site. Will be great if any know how we can achieve that or any community module available for that please guide me

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.