From c94d7de18133ea303d3103adfffe8a2f7708c29f Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 25 Mar 2025 10:43:59 +0100 Subject: [PATCH] fixed menu --- Layout/default/menu.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Layout/default/menu.php b/Layout/default/menu.php index 1cf0cdae4..65c2fc041 100644 --- a/Layout/default/menu.php +++ b/Layout/default/menu.php @@ -11,7 +11,7 @@ @@ -92,7 +92,7 @@ - is(["Admin", "netowner", "salespartner"]) && ($me->is("employee") || $me->can(["Fibu", "Billing", "Preorderpricing", "Preorderbilling"])) || in_array($me->address_id, [1,209,5908,2187])): ?> + is(["Admin", "netowner", "salespartner"]) && ($me->is("employee") || $me->can(["Fibu", "Billing", "Preorderpricing", "Preorderbilling"])) || !empty(json_decode((new WorkerFlag($me->id, "constructionConsent_projects"))->value() ?? '[]'))): ?>
  • Backoffice
    @@ -112,7 +112,7 @@ is(["Admin","netowner","salespartner"]) && $me->can("Preorderbilling")): ?>
  • "> Vorbestellkampagnen Verrechnung
  • - is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908,2187])): ?> + isAdmin() || !empty(json_decode((new WorkerFlag($me->id, "constructionConsent_projects"))->value() ?? '[]'))): ?>
  • "> Zustimmungserklärungen