There's a module for that already: http://drupal.org/project/adminrole
For switching users, the devel.module has a switch users block that allows you to quickly impersonate another user.
Konstantin On 09.05.2009, at 04:39, David Metzler wrote:
I had another idea for a simple module that I'm considering developing. I often get overwhelmed with drupal administration, and have many sites where admin is shared. Every time I add a module in drupal I tediously enable all access permissions for my "Admin" role. I began to think about the Linux sudo model, and thought this might be cool for dupal. Users with "Become Admin" privilges could switch to the "admin" user only. This way I could largely see the view that my content contributors do :).Does this seem like a good thing? Anyone know about duplication? I'm aware of Devel, and Masquerade but I didn't feel the need for that on the production sites, and I really don't want to expose the "Become Any User" functionality (but maybe I'm being silly here).
smime.p7s
Description: S/MIME cryptographic signature
