Suppression de la variable accessExclude

This commit is contained in:
Fred Tempez 2023-08-08 19:44:17 +02:00
parent cc90fc2273
commit 0fd9ff177e
2 changed files with 9 additions and 5 deletions

View File

@ -572,8 +572,8 @@ class core extends common
$this->getUser('id') && $this->getUser('id') &&
$userId !== $this->getUser('id') && $userId !== $this->getUser('id') &&
$this->getData(['user', $userId, 'accessUrl']) === $this->getUrl() && $this->getData(['user', $userId, 'accessUrl']) === $this->getUrl() &&
array_intersect($t, self::$accessList) && array_intersect($t, self::$concurrentAccess) &&
array_intersect($t, self::$accessExclude) !== false && //array_intersect($t, self::$accessExclude) !== false &&
time() < $this->getData(['user', $userId, 'accessTimer']) + self::ACCESS_TIMER time() < $this->getData(['user', $userId, 'accessTimer']) + self::ACCESS_TIMER
) { ) {
$access = false; $access = false;

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '13.0.00.14'; const ZWII_VERSION = '13.0.00.15';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
@ -74,7 +74,7 @@ class common
"theme", "theme",
"user" "user"
]; ];
public static $accessList = [ public static $concurrentAccess = [
"config", "config",
"edit", "edit",
"language", "language",
@ -82,10 +82,14 @@ class common
"theme", "theme",
"user" "user"
]; ];
/*
Cette variable est supprimée du test dans le routeur.
public static $accessExclude = [ public static $accessExclude = [
'login', 'login',
'logout' 'logout',
"maintenance",
]; ];
*/
private $data = []; private $data = [];
private $hierarchy = [ private $hierarchy = [
'all' => [], 'all' => [],