mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
d5c7687627
commit
2467f2cb9a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||||
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
|
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
|
$sql = "SELECT g.group_id
|
||||||
FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
|
FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
|
||||||
|
|
Loading…
Add table
Reference in a new issue