Increase access level required for content permissions rebuilds (D7)

Created on 24 January 2024, 11 months ago

Problem/Motivation

This issue is the D7 equivalent of 📌 Increase access level required for content permissions rebuilds Fixed . The description below is taken from that issue.

/admin/reports/status/rebuild is accessible to any user with the access administration pages permission. Rebuilding permissions can be a long and very disruptive process for sites with lots of content access permissions and should be restricted to a higher level of permission.

In fact, the final step of the rebuild process redirects the user to /admin/reports/status which requires the administer site configuration so for certain configurations the user will be redirected to a 403 Access Denied message after the rebuild completes.

Steps to reproduce

  1. Flag permissions for rebuild.
  2. Log in as a user with the access administration page permission but not the administer site configuration permission.
  3. Observe a notification about rebuilding permissions and click the link to do so.
  4. Rebuild the permissions.
  5. Observe a 403 Access Denied response on completion.

Proposed resolution

Create a backport of 📌 Increase access level required for content permissions rebuilds Fixed :

Use the administer nodes permissions for access control to the rebuild form and operation.

This means the user could still end up with a 403 Access Denied without the additional administer site configuration permission but administer site configuration feels like it does not fit quite as well for the rebuild permission.

Remaining tasks

Create a branch with the propose change.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Rebuilding permissions now requires the administer nodes permission . Previously only the access administration pages permission was required. Site owners should review and adjust permissions as necessary to ensure proper access to the rebuild permissions functionality.

🐛 Bug report
Status

Needs review

Version

7.0 ⚰️

Component
Node system 

Last updated 4 days ago

No maintainer
Created by

🇳🇱Netherlands megachriz

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