Merge branch 'fronkdev' of code.fronk.at:fronk/thetool into fronkdev

This commit is contained in:
Frank Schubert
2026-02-05 15:25:46 +01:00

View File

@@ -11,7 +11,7 @@ class PreorderController extends mfBaseController {
$isApiWhitelist = (isset($_GET['do']) && $_GET['do'] === 'getFCPsForCampaign' && $this->action === 'Api');
if (!$me->is(["Admin", "netowner", "salespartner", "preorderfront"])) {
if (!$me->is(["Admin", "netowner", "salespartner", "preorderfront"]) && !$me->can("Preorder")) {
if (!$isApiWhitelist) {
$this->redirect("Dashboard");
}