summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-13 19:02:38 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-13 19:02:38 +0000
commit776e6501cdf301c498e584bdd7db12e6a659a8e0 (patch)
treecbd5c36d84fefc933ae03f211e9a556eb4a6a476
parent155aff37d730b12a16e379530ed5706cb91bdc01 (diff)
downloadbrdo-776e6501cdf301c498e584bdd7db12e6a659a8e0.tar.gz
brdo-776e6501cdf301c498e584bdd7db12e6a659a8e0.tar.bz2
- Patch #44210 by DriesK: made it possible to edit blocked users.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
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'),