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') &&
$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;

View File

@ -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' => [],