diff --git a/modules/user.module b/modules/user.module
index b5108022572c94f48485e1998adf05336b41c7b9..763c30540fcd732127a5b29d494118399395998b 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -543,15 +543,15 @@ function user_link($type) {
   global $user;
 
   if ($type == 'system') {
-    $access = $user->uid;
-    menu('user', t('my account'), $access ? 'user_page' : MENU_DENIED, 8);
-    menu('user/edit', t('edit account'), $access ? 'user_page' : MENU_DENIED, 0);
-    menu('logout', t('log out'), $access ? 'user_logout' : MENU_DENIED, 10);
-
-    if (!$user->uid) {
-      menu('user/login', t('log in'), 'user_page', 0, MENU_HIDE);
-      menu('user/password', t('e-mail new password'), 'user_page', 0, MENU_HIDE);
-      menu('user/register', t('create new account'), 'user_page', 0, MENU_HIDE);
+    if ($user->uid) {
+      menu('user', t('my account'), 'user_page', 0);
+      menu('user/edit', t('edit account'), 'user_page', 0);
+      menu('logout', t('log out'), 'user_logout', 10);
+    }
+    else {
+      menu('user', t('user'), 'user_page', 0, MENU_HIDE);
+      menu('user/edit', t('edit account'), MENU_DENIED);
+      menu('logout', t('log out'), MENU_DENIED);
     }
 
     $access = user_access('administer users');
diff --git a/modules/user/user.module b/modules/user/user.module
index b5108022572c94f48485e1998adf05336b41c7b9..763c30540fcd732127a5b29d494118399395998b 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -543,15 +543,15 @@ function user_link($type) {
   global $user;
 
   if ($type == 'system') {
-    $access = $user->uid;
-    menu('user', t('my account'), $access ? 'user_page' : MENU_DENIED, 8);
-    menu('user/edit', t('edit account'), $access ? 'user_page' : MENU_DENIED, 0);
-    menu('logout', t('log out'), $access ? 'user_logout' : MENU_DENIED, 10);
-
-    if (!$user->uid) {
-      menu('user/login', t('log in'), 'user_page', 0, MENU_HIDE);
-      menu('user/password', t('e-mail new password'), 'user_page', 0, MENU_HIDE);
-      menu('user/register', t('create new account'), 'user_page', 0, MENU_HIDE);
+    if ($user->uid) {
+      menu('user', t('my account'), 'user_page', 0);
+      menu('user/edit', t('edit account'), 'user_page', 0);
+      menu('logout', t('log out'), 'user_logout', 10);
+    }
+    else {
+      menu('user', t('user'), 'user_page', 0, MENU_HIDE);
+      menu('user/edit', t('edit account'), MENU_DENIED);
+      menu('logout', t('log out'), MENU_DENIED);
     }
 
     $access = user_access('administer users');