Disabled deleting Preorders for non-admins

This commit is contained in:
Frank Schubert
2025-11-18 14:37:37 +01:00
parent 36dff8da6a
commit 36c646e335
2 changed files with 6 additions and 0 deletions

View File

@@ -791,6 +791,10 @@ class PreorderController extends mfBaseController {
$qs = http_build_query($qs);
}
if(!$this->me->isAdmin()) {
$this->redirect("Preorder", "Index", $qs);
}
$id = $this->request->id;
if(!is_numeric($id) || $id < 1) {
$this->layout()->setFlash("Vorbestellung nicht gefunden!", "error");