summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-27 02:21:53 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-27 02:21:53 +0000
commit827e278489e55a294150524feb118bedfa6f2e92 (patch)
tree64e5daba9b1c9139e060e3e171dd852bb895f68a /modules/user
parente8364f5156decde5b6d5c9f79dbe01910c39a89a (diff)
downloadbrdo-827e278489e55a294150524feb118bedfa6f2e92.tar.gz
brdo-827e278489e55a294150524feb118bedfa6f2e92.tar.bz2
#296693 by Damien Tournoud, boombatower, sun, and Xano: Hide parent administrative menu items when user has no access to any of their children.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 3a23cd772..fe16d994e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1335,7 +1335,8 @@ function user_menu() {
'description' => "Manage your site's users, groups and access to site features.",
'position' => 'left',
'page callback' => 'system_admin_menu_block_page',
- 'access arguments' => array('access administration pages'),
+ 'access callback' => 'system_admin_menu_block_access',
+ 'access arguments' => array('admin/user', 'access administration pages'),
);
$items['admin/user/user'] = array(
'title' => 'Users',