Ignore:
Timestamp:
Jul 21, 2006, 5:28:09 PM (18 years ago)
Author:
nikrou
Message:

bug 482 fixed: deletion of our account must be impossible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r1462 r1489  
    251251// |                             delete users                              |
    252252// +-----------------------------------------------------------------------+
    253 
    254253if (isset($_POST['delete']) and count($collection) > 0)
    255254{
     
    257256  {
    258257    array_push($page['errors'], l10n('Webmaster cannot be deleted'));
     258  }
     259  elseif (in_array($user['id'], $collection))
     260  {
     261    array_push($page['errors'], l10n('You cannot delete your account'));
    259262  }
    260263  else
Note: See TracChangeset for help on using the changeset viewer.