summaryrefslogtreecommitdiff
path: root/modules/user/user.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r--modules/user/user.pages.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 7eff7de43..063ea100e 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -248,7 +248,7 @@ function user_profile_form($form, &$form_state, $account, $category = 'account')
'#value' => t('Cancel account'),
'#weight' => 31,
'#submit' => array('user_edit_cancel_submit'),
- '#access' => ($account->uid == $user->uid && user_access('cancel account')) || user_access('administer users'),
+ '#access' => $account->uid > 1 && (($account->uid == $user->uid && user_access('cancel account')) || user_access('administer users')),
);
}