diff --git a/core/class/router.class.php b/core/class/router.class.php index a9bc1323..02d497ec 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -572,8 +572,8 @@ class core extends common $this->getUser('id') && $userId !== $this->getUser('id') && $this->getData(['user', $userId, 'accessUrl']) === $this->getUrl() && - array_intersect($t, self::$accessList) && - array_intersect($t, self::$accessExclude) !== false && + array_intersect($t, self::$concurrentAccess) && + //array_intersect($t, self::$accessExclude) !== false && time() < $this->getData(['user', $userId, 'accessTimer']) + self::ACCESS_TIMER ) { $access = false; diff --git a/core/core.php b/core/core.php index 3cb3b948..a12213f1 100644 --- a/core/core.php +++ b/core/core.php @@ -51,7 +51,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '13.0.00.14'; + const ZWII_VERSION = '13.0.00.15'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; @@ -74,7 +74,7 @@ class common "theme", "user" ]; - public static $accessList = [ + public static $concurrentAccess = [ "config", "edit", "language", @@ -82,10 +82,14 @@ class common "theme", "user" ]; + /* + Cette variable est supprimée du test dans le routeur. public static $accessExclude = [ 'login', - 'logout' + 'logout', + "maintenance", ]; + */ private $data = []; private $hierarchy = [ 'all' => [],