- Patch #44210 by DriesK: made it possible to edit blocked users.

4.7.x
Dries Buytaert 2006-01-13 19:02:38 +00:00
parent 155aff37d7
commit 776e6501cd
2 changed files with 2 additions and 2 deletions

View File

@ -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'),

View File

@ -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'),