Merge branch 'improve-warehouse' into 'master'
Allowed ingena for cons consent See merge request fronk/thetool!1018
This commit is contained in:
@@ -198,7 +198,7 @@
|
|||||||
<?php if($me->is(["Admin","salespartner"]) && $me->can("Order")): ?>
|
<?php if($me->is(["Admin","salespartner"]) && $me->can("Order")): ?>
|
||||||
<li><a href="<?=self::getUrl("Order")?>"><i class="far fa-fw fa-file-signature text-info"></i> Bestellungen</a></li>
|
<li><a href="<?=self::getUrl("Order")?>"><i class="far fa-fw fa-file-signature text-info"></i> Bestellungen</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908])): ?>
|
<?php if($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908,2187])): ?>
|
||||||
<li><a href="<?=self::getUrl("ConstructionConsentProject")?>"><i class="far fa-fw fa-clipboard-question text-info"></i> Zustimmungserklärungen</a></li>
|
<li><a href="<?=self::getUrl("ConstructionConsentProject")?>"><i class="far fa-fw fa-clipboard-question text-info"></i> Zustimmungserklärungen</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class ConstructionConsentController extends mfBaseController {
|
|||||||
$this->me = $me;
|
$this->me = $me;
|
||||||
$this->layout()->set("me", $me);
|
$this->layout()->set("me", $me);
|
||||||
|
|
||||||
if (!($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908]))) $this->redirect("Dashboard");
|
if (!($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908,2187]))) $this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function indexAction() : void {
|
protected function indexAction() : void {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class ConstructionConsentProjectController extends mfBaseController {
|
|||||||
$this->me = $me;
|
$this->me = $me;
|
||||||
$this->layout()->set("me", $me);
|
$this->layout()->set("me", $me);
|
||||||
|
|
||||||
if (!($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908]))) $this->redirect("Dashboard");
|
if (!($me->is(["Admin","netowner","salespartner"]) && in_array($me->address_id, [1,209,5908,2187]))) $this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function indexAction() : void {
|
protected function indexAction() : void {
|
||||||
|
|||||||
Reference in New Issue
Block a user