#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

6.x
Gábor Hojtsy 2007-10-03 13:01:04 +00:00
parent e2dc2bdf66
commit 35c0e44330
1 changed files with 1 additions and 0 deletions

View File

@ -858,6 +858,7 @@ function user_menu() {
$items['user/login'] = array(
'title' => 'Log in',
'access callback' => 'user_is_anonymous',
'type' => MENU_DEFAULT_LOCAL_TASK,
);