diff --git a/admin_users.php b/admin_users.php index fbd4e624e..d9c74d967 100644 --- a/admin_users.php +++ b/admin_users.php @@ -275,9 +275,6 @@ if (empty($user_ids)) message($lang_admin_users['No users selected']); - if (in_array($pun_user['id'], $user_ids)) - message($lang_admin_users['No move self message']); - // Are we trying to batch move any admins? $result = $db->query('SELECT COUNT(*) FROM '.$db->prefix.'users WHERE id IN ('.implode(',', $user_ids).') AND group_id='.PUN_ADMIN) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); if ($db->result($result) > 0) @@ -404,9 +401,6 @@ if (empty($user_ids)) message($lang_admin_users['No users selected']); - if (in_array($pun_user['id'], $user_ids)) - message($lang_admin_users['No delete self message']); - // Are we trying to delete any admins? $result = $db->query('SELECT COUNT(*) FROM '.$db->prefix.'users WHERE id IN ('.implode(',', $user_ids).') AND group_id='.PUN_ADMIN) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); if ($db->result($result) > 0) @@ -550,9 +544,6 @@ if (empty($user_ids)) message($lang_admin_users['No users selected']); - if (in_array($pun_user['id'], $user_ids)) - message($lang_admin_users['No ban self message']); - // Are we trying to ban any admins? $result = $db->query('SELECT COUNT(*) FROM '.$db->prefix.'users WHERE id IN ('.implode(',', $user_ids).') AND group_id='.PUN_ADMIN) or error('Unable to fetch group info', __FILE__, __LINE__, $db->error()); if ($db->result($result) > 0) diff --git a/lang/English/admin_users.php b/lang/English/admin_users.php index a8bcb8fa6..76d6639a1 100644 --- a/lang/English/admin_users.php +++ b/lang/English/admin_users.php @@ -9,11 +9,8 @@ // Actions: mass delete/ban etc. 'No users selected' => 'No users selected.', -'No move self message' => 'For security reasons, you are not allowed to move yourself to a different group using this function.', 'No move admins message' => 'For security reasons, you are not allowed to move multiple administrators to another group. If you want to move these administrators, you can do so on their respective user profiles.', -'No delete self message' => 'For security reasons, you are not allowed to delete yourself using this function. If you really want to delete your user profile, please ask another administrator to demote you and then delete your profile.', 'No delete admins message' => 'Administrators cannot be deleted. In order to delete administrators, you must first move them to a different user group.', -'No ban self message' => 'For security reasons, you are not allowed to ban yourself.', 'No ban admins message' => 'Administrators cannot be banned. In order to ban administrators, you must first move them to a different user group.', 'No ban mods message' => 'Moderators cannot be banned. In order to ban moderators, you must first move them to a different user group.', 'Move users' => 'Change user group',