Toggle Role
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Toggle Role gives you the ability to hide (and show) the admin interface and edit buttons. This lets administrators, editors, and other roles view the drupal site without their role's abilities showing up and cluttering up the screen.
In essense, this emulates the "sudo" command found on linux computers. The user will retain all rights to their role, but for day-to-day operations, they can hide the admin menu in order to browse the site, all without needing to log in as a non-privileged user.
The visibility is stored in a cookie, so the user can browse to other pages on the site, or return to the site another time, while retaining their preference. Note that it does not store the preference in a database or otherwise keep track of a user outside of the current browser.
After installing the module, set the Permissions for Toggle Role to the roles that should have this toggle. Any roles that would show the toolbar should probably be selected. Then, modify the Structure to show the Block for the module.
I wrote this because many roles are only needed on occasion, but we use LDAP to authenticate and map roles. Thus, creating a second set of usernames with alternate role privileges would be a hassle and unneeded if we could simply hide the admin menu on demand.
