From 2467f2cb9ac3b3ce00ca8e19f30e2e677d8bff96 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Mon, 19 Sep 2005 20:44:22 +0000 Subject: [PATCH] Prevent an admin deleting themselves in order to reduce support issues of users accidentally deleting themself git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5213 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 46f8039f05..da0c9bf616 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -71,7 +71,7 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } - if( $HTTP_POST_VARS['deleteuser'] ) + if( $HTTP_POST_VARS['deleteuser'] && ( $userdata['user_id'] != $user_id ) ) { $sql = "SELECT g.group_id FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g