From 937c36ca6dcf630205806ba2ea40d8267b0df933 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 29 Mar 2023 10:17:32 +0200 Subject: [PATCH] admin code 3 --- core/core.php | 2 +- core/include/update.inc.php | 13 +++---------- core/module/install/ressource/defaultdata.php | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/core/core.php b/core/core.php index dc235e33..9ce70dd2 100644 --- a/core/core.php +++ b/core/core.php @@ -55,7 +55,7 @@ class common // Numéro de version et branche pour l'auto-update const ZWII_VERSION = '12.4.00'; - const ZWII_DATAVERSION = 12400; + const ZWII_DATAVERSION = 12301; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; diff --git a/core/include/update.inc.php b/core/include/update.inc.php index f7db10c4..7d469f87 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -955,21 +955,14 @@ if ($this->getData(['core', 'dataVersion']) < 12301) { unlink('core/module/install/ressource/i18n/gr_GR.json'); // Mise à jour - $this->setData(['core', 'dataVersion', 12300]); + $this->setData(['core', 'dataVersion', 12301]); } // Version 12.4.00 +/* if ($this->getData(['core', 'dataVersion']) < 12400) { - - // Affecter le groupe 99 aux admins - $users = $this->getData(['user']); - foreach ($users as $key => $value) { - if ($value['group'] === 3) { - $this->setData(['user', $key, 'group', 99]); - } - } // Mise à jour $this->setData(['core', 'dataVersion', 12400]); -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index eecc9aab..d83875f0 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -401,7 +401,7 @@ class init extends common 'path' => '.\/site\/file\/source\/partage\/', ] ], - '99' => [ + '3' => [ 'name' => 'Administrateur', 'readonly' => true, 'comment' => 'Contrôle total',