4

Drupal 8. I want a user with a certain role to be able to see and administer menu items /admin/structure/menu/manage/main

On the permissions page /admin/people/permissions I have 'Administer menus and menu items' checked. This worked in Drupal 7.

I can get to the /admin/structure/menu/manage/main page if I manually type in in the browser.

But the 'Structure' button/link does not appear in the toolbar for that role. It shows up for me when am logged in as User/1

How do I get the 'Structure' in the Toolbar? Am I choosing the wrong permission? Am I missing one?

9

You would have to grant the following permissions to the role:

Required

  • Use the administration toolbar
  • Administer menus and menu items
  • Use the administration pages and help

Optional

  • View the administration theme
  • 2
    This is totally correct, but fyi- If a person is using the Admin Toolbar (it creates dropdown menus in the Toolbar), adding the permission to 'user the administration pages and help' will make all the Toolbar links visible. For example, the person would see the 'Configuration' link/button and all its children, even if a person does not have access. When you go to that section it will just say 'You do not have any administrative items'. This is a known issue with the Admin Toolbar. There is a separtate module you can install to hide them drupal.org/project/admin_links_access_filter – heart.cooks.mind Jun 27 '17 at 12:32
  • 2
    Here's a link to the issue where there is a working patch: drupal.org/node/2855786 – joekers Jun 28 '17 at 9:50
  • That patch has been added to Admin Toolbar as the Admin Toolbar Links Access Filter submodule. Enable it and the Configuration menu isn't shown. – Hugo Aug 28 at 11:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.