mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Actualizacion automatica: 2024-05-07 09:41:02
This commit is contained in:
@ -3,6 +3,7 @@ const SK_PERMISSION_MATRIX = [
|
||||
"admin" => [
|
||||
"clientes.create",
|
||||
"clientes.edit",
|
||||
"clientes.delete",
|
||||
"clientes.menu",
|
||||
"plantillaTarifa.create",
|
||||
"plantillaTarifa.edit",
|
||||
@ -32,6 +33,18 @@ const SK_PERMISSION_MATRIX = [
|
||||
"tarifaEnvio.edit",
|
||||
"tarifaEnvio.delete",
|
||||
"tarifaEnvio.menu",
|
||||
"proveedores.create",
|
||||
"proveedores.edit",
|
||||
"proveedores.delete",
|
||||
"proveedores.menu",
|
||||
"ajustes.create",
|
||||
"ajustes.edit",
|
||||
"ajustes.delete",
|
||||
"ajustes.menu",
|
||||
"actividad.create",
|
||||
"actividad.edit",
|
||||
"actividad.delete",
|
||||
"actividad.menu",
|
||||
],
|
||||
"cliente" => [
|
||||
"token.token",
|
||||
|
||||
@ -21,8 +21,14 @@ class Test extends BaseController
|
||||
{
|
||||
helper('rbac');
|
||||
|
||||
//$user = auth()->user();
|
||||
|
||||
echo generate_php_permissions_matrix_constant();
|
||||
|
||||
//echo generate_php_permissions_matrix_constant();
|
||||
|
||||
//$user->syncGroups('admin');
|
||||
|
||||
//var_dump($user->can('token.menu'));
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user