mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
bug 482 fixed: deletion of our account must be impossible
git-svn-id: http://piwigo.org/svn/trunk@1489 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'])
|
||||
|
||||
@@ -177,6 +177,7 @@ $lang['Webmaster cannot be deleted'] = 'Webmaster cannot be deleted';
|
||||
$lang['Yes'] = 'Yes';
|
||||
$lang['You are running on development sources, no check possible.'] = 'You are running on development sources, no check possible.';
|
||||
$lang['You are running the latest version of PhpWebGallery.'] = 'You are running the latest version of PhpWebGallery.';
|
||||
$lang['You cannot delete your account'] = "You cannot delete your account";
|
||||
$lang['You cannot move a category in its own sub category'] = 'You cannot move a category in its own sub category';
|
||||
$lang['You need to confirm deletion'] = 'You need to confirm deletion';
|
||||
$lang['actions'] = 'Actions';
|
||||
|
||||
@@ -177,6 +177,7 @@ $lang['Webmaster cannot be deleted'] = 'Le webmestre ne peut pas
|
||||
$lang['Yes'] = 'Oui';
|
||||
$lang['You are running on development sources, no check possible.'] = 'Vous travaillez avec les sources de développement, impossible de vérifier la dernière version.';
|
||||
$lang['You are running the latest version of PhpWebGallery.'] = 'Vous utilisez la dernière version de PhpWebGallery.';
|
||||
$lang['You cannot delete your account'] = "Vous ne pouvez pas supprimer votre compte";
|
||||
$lang['You cannot move a category in its own sub category'] = 'Vous ne pouvez pas déplacer une catégorie dans sa propre sous-catégorie';
|
||||
$lang['You need to confirm deletion'] = 'Vous devez confirmer la suppression';
|
||||
$lang['actions'] = 'Actions';
|
||||
|
||||
Reference in New Issue
Block a user