mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadidos permisos para Produccion
This commit is contained in:
@ -271,10 +271,11 @@
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Group')) > 0): ?>
|
||||
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("configuracion/group") ?>" class="menu-link">
|
||||
<a href="<?= route_to("userGroupList") ?>" class="menu-link">
|
||||
<div data-i18n="<?= lang("App.menu_permission_group") ?>"><?= lang("App.menu_permission_group") ?></div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -285,6 +285,7 @@
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Users')) > 0): ?>
|
||||
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
||||
<li class="menu-item">
|
||||
@ -294,10 +295,11 @@
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($temp = getArrayItem($menus, 'name', 'Group')) > 0): ?>
|
||||
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("configuracion/group") ?>" class="menu-link">
|
||||
<a href="<?= route_to("userGroupList") ?>" class="menu-link">
|
||||
<div data-i18n="<?= lang("App.menu_permission_group") ?>"><?= lang("App.menu_permission_group") ?></div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -79,7 +79,7 @@ if (
|
||||
<?php } ?>
|
||||
<?php if (auth()->user()->can('roles-permisos.menu')) { ?>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("configuracion/group") ?>" class="menu-link">
|
||||
<a href="<?= route_to("userGroupList") ?>" class="menu-link">
|
||||
<?= lang("App.menu_permission_group") ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
* MENU PRODUCCION
|
||||
*/
|
||||
if (
|
||||
auth()->user()->can('produccion.ots') ||
|
||||
auth()->user()->can('produccion.plannings')
|
||||
auth()->user()->can('produccion.menu')
|
||||
) {
|
||||
?>
|
||||
<!-- Production -->
|
||||
@ -14,11 +13,13 @@ if (
|
||||
<?= lang("App.menu_produccion") ?>
|
||||
</a>
|
||||
<ul class="menu-sub">
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("produccion/ordentrabajo") ?>" class="menu-link">
|
||||
<?= lang("App.menu_orden_trabajo") ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php if (auth()->user()->can('produccion.ots')) { ?>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("produccion/ordentrabajo") ?>" class="menu-link">
|
||||
<?= lang("App.menu_orden_trabajo") ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<!-- <li class="menu-item">
|
||||
<a href="<?= site_url("produccion/ordentrabajo/cien") ?>" class="menu-link">
|
||||
<?= lang("App.menu_orden_trabajo_100") ?>
|
||||
@ -34,11 +35,13 @@ if (
|
||||
<?= lang("App.menu_orden_trabajo_pendientes") ?>
|
||||
</a>
|
||||
</li> -->
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("produccion/ordentrabajo/planning/rotativa") ?>" class="menu-link">
|
||||
<?= lang("App.menu_planning") ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php if (auth()->user()->can('produccion.plannings')) { ?>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("produccion/ordentrabajo/planning/rotativa") ?>" class="menu-link">
|
||||
<?= lang("App.menu_planning") ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user