forked from ZwiiCMS-Team/ZwiiCMS
annulation correctif csrf
This commit is contained in:
parent
fd7b2cd524
commit
5d300c93d6
@ -76,8 +76,7 @@ class page extends common {
|
||||
/**
|
||||
* Suppression
|
||||
*/
|
||||
public function delete() {
|
||||
if($this->isPost()) {
|
||||
public function delete() {
|
||||
// La page n'existe pas
|
||||
if($this->getData(['page', $this->getUrl(2)]) === null) {
|
||||
// Valeurs en sortie
|
||||
@ -112,12 +111,6 @@ class page extends common {
|
||||
'state' => true
|
||||
]);
|
||||
}
|
||||
} else {
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'access' => false
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user