diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-03 13:01:04 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-03 13:01:04 +0000 |
commit | 35c0e44330f803e91f100a6f8334208aed897d2c (patch) | |
tree | bf2d19f93bbbab7268ae643774834851bc930cb5 /modules/user | |
parent | e2dc2bdf6634d812f154ce7af781301d50b0c809 (diff) | |
download | brdo-35c0e44330f803e91f100a6f8334208aed897d2c.tar.gz brdo-35c0e44330f803e91f100a6f8334208aed897d2c.tar.bz2 |
#179695 by chx: only anonymous users should have permission to visit user/login, so this menu item is automatically hidden when a user is logged in
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.module | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index b215c7efd..7c9a15ecb 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -858,6 +858,7 @@ function user_menu() { $items['user/login'] = array( 'title' => 'Log in', + 'access callback' => 'user_is_anonymous', 'type' => MENU_DEFAULT_LOCAL_TASK, ); |