mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadido helper para crear los archivos de costantes de RBAC
This commit is contained in:
77
ci4/app/Config/RBAC/permissionMatrix.php
Normal file
77
ci4/app/Config/RBAC/permissionMatrix.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
const SK_PERMISSION_MATRIX = [
|
||||
"admin" => [
|
||||
"clientes.create",
|
||||
"clientes.edit",
|
||||
"clientes.menu",
|
||||
"plantillaTarifa.create",
|
||||
"plantillaTarifa.edit",
|
||||
"plantillaTarifa.delete",
|
||||
"plantillaTarifa.menu",
|
||||
"presupuesto.create",
|
||||
"presupuesto.edit",
|
||||
"presupuesto.delete",
|
||||
"presupuesto.menu",
|
||||
"tarifaPreimpresion.create",
|
||||
"tarifaPreimpresion.edit",
|
||||
"tarifaPreimpresion.delete",
|
||||
"tarifaPreimpresion.menu",
|
||||
"tarifaManipulado.create",
|
||||
"tarifaManipulado.edit",
|
||||
"tarifaManipulado.delete",
|
||||
"tarifaManipulado.menu",
|
||||
"tarifaAcabado.create",
|
||||
"tarifaAcabado.edit",
|
||||
"tarifaAcabado.delete",
|
||||
"tarifaAcabado.menu",
|
||||
"tarifaEncuadernacion.create",
|
||||
"tarifaEncuadernacion.edit",
|
||||
"tarifaEncuadernacion.delete",
|
||||
"tarifaEncuadernacion.menu",
|
||||
"tarifaEnvio.create",
|
||||
"tarifaEnvio.edit",
|
||||
"tarifaEnvio.delete",
|
||||
"tarifaEnvio.menu",
|
||||
],
|
||||
"cliente" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
"Profile.index",
|
||||
"Profile.store",
|
||||
"Profile.menu",
|
||||
"Activity.index",
|
||||
"Activity.menu",
|
||||
"save.save",
|
||||
"save.menu",
|
||||
],
|
||||
"comercial" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"produccion" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"maquina" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"maquetador" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"director" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"contabilidad" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
],
|
||||
"editor" => [
|
||||
"token.token",
|
||||
"token.menu",
|
||||
"Profile.index",
|
||||
"Profile.menu",
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user