Suppression de la variable accessExclude
This commit is contained in:
parent
cc90fc2273
commit
0fd9ff177e
@ -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;
|
||||||
|
@ -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' => [],
|
||||||
|
Loading…
Reference in New Issue
Block a user