aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user_list.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/user_list.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/user_list.php b/admin/user_list.php
index 79cf5af98..c1e6fac2c 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -250,13 +250,16 @@ if (isset($_POST['delete']) or isset($_POST['pref_submit']))
// +-----------------------------------------------------------------------+
// | delete users |
// +-----------------------------------------------------------------------+
-
if (isset($_POST['delete']) and count($collection) > 0)
{
if (in_array($conf['webmaster_id'], $collection))
{
array_push($page['errors'], l10n('Webmaster cannot be deleted'));
}
+ elseif (in_array($user['id'], $collection))
+ {
+ array_push($page['errors'], l10n('You cannot delete your account'));
+ }
else
{
if (isset($_POST['confirm_deletion']) and 1 == $_POST['confirm_deletion'])