summaryrefslogtreecommitdiff
path: root/modules/locale
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/locale
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/locale')
-rw-r--r--modules/locale/locale.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 91038969f..6b1e3a62c 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -76,7 +76,8 @@ function locale_menu() {
'position' => 'left',
'weight' => -7,
'page callback' => 'system_admin_menu_block_page',
- 'access arguments' => array('access administration pages'),
+ 'access callback' => 'system_admin_menu_block_access',
+ 'access arguments' => array('admin/international', 'access administration pages'),
);
$items['admin/international/language'] = array(
'title' => 'Languages',