annulation correctif csrf

This commit is contained in:
fredtempez 2019-01-04 22:30:50 +01:00
parent fd7b2cd524
commit 5d300c93d6

View File

@ -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
]);
}
}
/**