Currently on 8.x-1.0, any role with the `access administration pages` permission is able to view and alter the configuration page located at `admin/config/menu-item-role-access`. In cases where editor roles have access to the administration pages, they shouldn't be able to alter these settings. A new permission should be built to allow access to the configuration page for this module for the appropriate roles.

Comments

drieder created an issue. See original summary.

drieder’s picture

Added a initial patch

liampower’s picture

Hi @drieder,

Thanks for picking up on this, I agree it shouldn't be the `access administration pages`.

Thank you also for the patch. My only query would be the name and title of the permission. I feel Administer would be a better word to use than access.

drieder’s picture

Sorry about the delay, thanks for your response @LiamPower. I've added a new patch with better wording!

Vlad Stratulat’s picture

I believe that changing it to Drupal's Administer site configuration which available by default, should be enough for this.
You don't want to spam with configuration specific checkboxes on permissions page when this is a site configuration.

- _permission: 'access administration pages'
+ _permission: 'administer site configuration'

Vlad Stratulat’s picture

charginghawk’s picture

Status: Active » Reviewed & tested by the community

I prefer the approach in #4 - a cursory glance of my installed contrib modules shows that using "administer site configuration" is pretty rare (4 modules) and defining your own administer permission is pretty common (a few dozen modules). Also there's a "need and not have worse than have and not need" thing IMO.

It applies and works as expected.

liampower’s picture

#4 is also my preferred approach, but than you for your input Vlad.

  • LiamPower committed 9abcb99 on 8.x-1.x authored by drieder
    Issue #3048543 by drieder, Vlad Stratulat, LiamPower, charginghawk:...
liampower’s picture

Status: Reviewed & tested by the community » Fixed

Committed to the 1.x dev branch.

Thank you for your input everyone.

Status: Fixed » Closed (fixed)

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