This looks close, Pierre:
Controlling access with hook_menu_alter http://muriqui.net/archive/201001/controlling-access-hook-menu-alter
hook_menu_alter http://api.drupal.org/api/function/hook_menu_alter
K
On Jul 26, 2010, at 15:34 PM, Bob Morse wrote:
Thanks! It's true. And I will. I'm just lazy. If it's already been done I will use that. Even something that simple.
On 7/26/10 3:27 PM, Pierre Rineau wrote:
Le lundi 26 juillet 2010 à 15:17 -0700, Bob Morse a écrit :
Anyone know of a simple way to give a user (site manager) access to admin/reports/updates without giving access to ' administer site configuration'? -- [ Drupal support list | http://lists.drupal.org/ ]
Doing a simple hook_menu_alter() implementation, replacing the 'access arguments' key with another permission should do the trick.
If you need a specific permission for this, also implement the hook_perms() and all will be fine!
YES! This is code, and this needs a module, but a 3 lines module, everyone does modules to do some custom stuff in their Drupal installations :)
Pierre.
-- Bob Morse Morse Media Web Development * Web Hosting * Internet Marketing http://morsemedia.net 707-444-9566 707-496-9191 (cell) Blog: http://talkingtech.net Twitter: http://twitter.com/bobmorse
-- [ Drupal support list | http://lists.drupal.org/ ]