diff options
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index a02b97fe5..e9b911587 100644 --- a/modules/user.module +++ b/modules/user.module @@ -753,7 +753,7 @@ function user_menu($may_cache) { 'type' => MENU_CALLBACK, 'callback' => 'user_view', 'callback arguments' => arg(1), 'access' => $view_access); - if ($user_exists !== FALSE) { + if ($user_exists !== FALSE || $admin_access) { $items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('view'), 'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => t('edit'), diff --git a/modules/user/user.module b/modules/user/user.module index a02b97fe5..e9b911587 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -753,7 +753,7 @@ function user_menu($may_cache) { 'type' => MENU_CALLBACK, 'callback' => 'user_view', 'callback arguments' => arg(1), 'access' => $view_access); - if ($user_exists !== FALSE) { + if ($user_exists !== FALSE || $admin_access) { $items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('view'), 'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => t('edit'), |