Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294253

Restrict access to empty top level administration pages

$
0
0

Even if a role has no Structure related permissions, the "Structure" menu item still appears in the admin toolbar.
Selecting the menu takes the user to a page that simply states: "You do not have any administrative items."

It seems to me, that the top level menu item simply should not be present if there are no pages under it.

To reproduce, using a fresh installation:

  1. login as the site's superuser, and create a new role - name it anything you wish
  2. On the 'permissions' page for the new role, grant access to 'Use the administration pages and help', 'View the administration theme' and 'Use the administration toolbar'
  3. Create a new user for the site, and give this user the newly created role
  4. log out as the superuser, and login as the new user, with the new role
  5. notice that under 'Manage', you still have "Structure" - clicking it will take you to that page that states that you have no administrative items.

Viewing all articles
Browse latest Browse all 294253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>