forked from ZwiiCMS-Team/ZwiiCMS
page désactivée -> erreur 404
This commit is contained in:
parent
1e76d58f7e
commit
1a881e2023
@ -40,7 +40,7 @@ class common {
|
|||||||
const ACCESS_TIMER = 1800;
|
const ACCESS_TIMER = 1800;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.3.09';
|
const ZWII_VERSION = '10.3.10';
|
||||||
const ZWII_UPDATE_CHANNEL = "v10";
|
const ZWII_UPDATE_CHANNEL = "v10";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
@ -1843,6 +1843,17 @@ class core extends common {
|
|||||||
$access = false;
|
$access = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Empêcher l'accès aux page désactivée par URL directe
|
||||||
|
if ( ( $this->getData(['page', $this->getUrl(0),'disable']) === true
|
||||||
|
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
|
||||||
|
) OR (
|
||||||
|
$this->getData(['page', $this->getUrl(0),'disable']) === true
|
||||||
|
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
||||||
|
AND $this->getUser('group') < self::GROUP_MODERATOR
|
||||||
|
)
|
||||||
|
){
|
||||||
|
$access = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user