mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
bug 482 fixed: deletion of our account must be impossible
svn merge from trunk into branch 1.6 git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1490 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+4
-1
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user