This will show/hide links in the Tools admin menu based on a custom user role field. Note that it doesn't prevent users from browsing to those links through other means.
To add it to your site:
- Log into Elefant and go to Tools > Users > Custom Fields. Add a
Role
drop down field and list all admin roles here. - Save the tools.php file to
apps/acl/handlers/tools.php
. - Edit the tools.html file to add your own roles and the links they can see, then save it to
apps/acl/views/tools.html
. - Add this tag directly below the
{! admin/head !}
tag in each layout template, includinglayouts/admin.html
:
{! acl/tools !}
Now when you assign your admin users to each role, they will see different options in the Tools menu depending on their role.