Addd DisableDevices permission

This commit is contained in:
Frank Schubert
2025-10-07 14:06:38 +02:00
parent c0bbb83e32
commit 023eaf41d7
3 changed files with 33 additions and 2 deletions

View File

@@ -69,7 +69,7 @@
<li class="" ><a href="<?=self::getUrl("Pop")?>"><i class="fadr fa-fw fa-house text-info"></i> Pops</a></li>
<?php endif; ?>
<?php if($me->is(["Admin"]) || ($me->is("netowner","lineplanner","pipeplanner","pipeworker","lineworker","salespartner"))): ?>
<?php if(($me->is(["Admin"]) || $me->is("netowner")) && !$me->can("DevicesDisabled")): ?>
<li class=""><a href="<?=self::getUrl("Device")?>"><i class="fadr fa-fw fa-router text-info "></i> Devices</a></li>
<?php endif; ?>
<?php if($me->is(["Admin"])): ?>