#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
parent
e2dc2bdf66
commit
35c0e44330
|
@ -858,6 +858,7 @@ function user_menu() {
|
|||
|
||||
$items['user/login'] = array(
|
||||
'title' => 'Log in',
|
||||
'access callback' => 'user_is_anonymous',
|
||||
'type' => MENU_DEFAULT_LOCAL_TASK,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue