This project is not covered by Drupal’s security advisory policy.
integrated as submodule "admin_toolbar_links_access_filter" since 1.21
This module is now part of Admin Toolbar
As per 27th october 2017, this module got merged in as sub module to Admin Toolbar module and will be included in the upcoming 8.x-1.21 release. See #2919346: Don't show menu links that you don't have access permission for
Original project description
Administration links access filter provides a workaround for the common problem that users with 'Use the administration pages and help' permission see menu links they don't have access permission for.
The problem is very old and e.g. documented in this issue #296693: Restrict access to empty top level administration pages. In Drupal 8 things even get worse. While in older versions only empty main level links were rendered, now every child link gets rendered too. This is mentioned in #296693-158: Restrict access to empty top level administration pages.
We developed a workaround used in our client projects, and we decided to share this with you, packed into this module. There may be better ways to achieve the same result, as currently all things are done in preprocess hooks. However, it's a quick fix that works and hopefully also help others. Any improvements are welcome of course, hopefully the whole module can be deprecated soon in favour of a core solution...
This module has no configuration options at all. By simply activating, it filters links of the "admin" menu for users, who don't have an administrator role, Further it filters links on "admin_block_content" blocks, which are used on administration overview pages.
Although not strictly necessary, the usage of the Admin Toolbar is strongly recommended. Admin Toolbar adds a drop down menu to the toolbar, which is very comfortable on the on hand. On the other hand this means populating the top-level menu items of the administration menu with their children. Several top-level admin pages like admin/config are only overview pages containing child link items only, without having their own logic. Users with very limited admin permissions may not be allowed to a single child of admin/config e.g. With admin_toolbar enabled, this module is able to filter these empty overview pages and remove its link from the admin menu. Without admin_toolbar, the menu link will still show up, only the page content will have its child links filtered.
Credits
Administration links access module was originally developed and is currently
maintained by Mag. Andreas Mayr.
All initial development was sponsored by agoraDesign KG.
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Project categories: Administration tools
151 sites report using this module
- Created by agoradesign on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
