summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-10-04 06:20:38 +0000
committerDries Buytaert <dries@buytaert.net>2006-10-04 06:20:38 +0000
commit8c86bc5ad12b7c213cbbf331eb79910ee68ce952 (patch)
treed7639e0b88b21ba09003178ddece5ca296cc8243
parenta7ae7375a05b8d604db2cb7e1c36caede9ed42d1 (diff)
downloadbrdo-8c86bc5ad12b7c213cbbf331eb79910ee68ce952.tar.gz
brdo-8c86bc5ad12b7c213cbbf331eb79910ee68ce952.tar.bz2
- Rollback of patch #41739: this has been debated a dozen time in the past, and the behavior is intentional.
-rw-r--r--modules/user/user.module10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index f1d6c5792..8e0323770 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1301,7 +1301,7 @@ function user_edit_form($uid, $edit, $register = FALSE) {
'#required' => TRUE,
);
}
- if ($admin && $uid != 1) {
+ if ($admin) {
$form['account']['status'] = array('#type' => 'radios', '#title' => t('Status'), '#default_value' => isset($edit['status']) ? $edit['status'] : 1, '#options' => array(t('Blocked'), t('Active')));
}
if (user_access('administer access control')) {
@@ -1385,9 +1385,6 @@ function user_edit($category = 'account') {
$edit = $_POST['op'] ? $_POST : (array)$account;
if (arg(2) == 'delete') {
- if ($account->uid == 1) {
- return drupal_not_found();
- }
if ($edit['confirm']) {
user_delete($edit, $account->uid);
drupal_goto('admin/user/user');
@@ -1397,9 +1394,6 @@ function user_edit($category = 'account') {
}
}
else if ($_POST['op'] == t('Delete')) {
- if ($account->uid == 1) {
- return drupal_not_found();
- }
if ($_REQUEST['destination']) {
$destination = drupal_get_destination();
unset($_REQUEST['destination']);
@@ -1412,7 +1406,7 @@ function user_edit($category = 'account') {
$form['_category'] = array('#type' => 'value', '#value' => $category);
$form['_account'] = array('#type' => 'value', '#value' => $account);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'), '#weight' => 30);
- if (user_access('administer users') && $account->uid != 1) {
+ if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
$form['#attributes']['enctype'] = 'multipart/form-data';