summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-19 11:24:11 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-19 11:24:11 +0000
commitb0676c8f27d75d4b4887de37c92a152386a3a740 (patch)
treec0d7d0a0177c874e5c3f6f45406322b936818cef /modules/user/user.module
parentc40af9443d141d117aac0b27bfeef6b3f5792b1d (diff)
downloadbrdo-b0676c8f27d75d4b4887de37c92a152386a3a740.tar.gz
brdo-b0676c8f27d75d4b4887de37c92a152386a3a740.tar.bz2
#192692 by jrbeeman and mfer: (security) protect profile category page menu items with the visibility settings already available
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 88ffcabee..caf301411 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1072,6 +1072,8 @@ function user_menu() {
'title arguments' => array($category['title']),
'page callback' => 'user_edit',
'page arguments' => array(1, 3),
+ 'access callback' => isset($category['access callback']) ? $category['access callback'] : TRUE,
+ 'access arguments' => isset($category['access arguments']) ? $category['access arguments'] : array(),
'type' => MENU_LOCAL_TASK,
'weight' => $category['weight'],
'file' => 'user.pages.inc',