diff --git a/ci4/app/Controllers/Configuracion/ConfigVariables.php b/ci4/app/Controllers/Configuracion/ConfigVariables.php index 1455c93c..65bb3144 100755 --- a/ci4/app/Controllers/Configuracion/ConfigVariables.php +++ b/ci4/app/Controllers/Configuracion/ConfigVariables.php @@ -38,6 +38,7 @@ class ConfigVariables extends BaseResourceController public function index() { + checkPermission('variables-sistema.menu'); $viewData = [ 'currentModule' => static::$controllerSlug, @@ -60,6 +61,8 @@ class ConfigVariables extends BaseResourceController } public function updateVariable(int $config_variable_id) { + checkPermission('variables-sistema.edit'); + $reqData = []; if ($this->request->isAJAX()) { $reqData = $this->request->getPost(); diff --git a/ci4/app/Controllers/Configuracion/FestivoController.php b/ci4/app/Controllers/Configuracion/FestivoController.php index bf43337b..02eae850 100644 --- a/ci4/app/Controllers/Configuracion/FestivoController.php +++ b/ci4/app/Controllers/Configuracion/FestivoController.php @@ -42,11 +42,16 @@ class FestivoController extends BaseController public function index() { + + checkPermission('festivos.menu'); + return view($this->viewPath . $this->indexRoute); } public function store_festivo_date() { + checkPermission('festivos.edit'); + $bodyData = $this->request->getPost(); $date = $bodyData['date']; $count = $this->model->where('date',$date)->countAllResults(); diff --git a/ci4/app/Language/es/RolesPermisos.php b/ci4/app/Language/es/RolesPermisos.php index 8731c5a3..70413546 100755 --- a/ci4/app/Language/es/RolesPermisos.php +++ b/ci4/app/Language/es/RolesPermisos.php @@ -58,8 +58,12 @@ return [ 'papelImpresionSection' => 'Papel impresión', 'usuariosSection' => 'Usuarios', 'rolesPermisosSection' => 'Roles y permisos', + 'tareasMaquinaSection' => 'Tareas de Máquina', + 'imposicionesSection' => 'Imposiciones', 'ubicacionesSection' => 'Ubicaciones', 'seriesFacturasSection' => 'Series facturas', + 'variablesSistemaSection' => 'Variables de sistema', + 'festivosSection' => 'Días Festivos', 'ajustesSection' => 'Ajustes', 'actividadSection' => 'Accesos', 'backupSection' => 'Backups', diff --git a/ci4/app/Views/themes/vuexy/form/group/viewUserGroupForm.php b/ci4/app/Views/themes/vuexy/form/group/viewUserGroupForm.php index f9e6daa5..586fbbd8 100755 --- a/ci4/app/Views/themes/vuexy/form/group/viewUserGroupForm.php +++ b/ci4/app/Views/themes/vuexy/form/group/viewUserGroupForm.php @@ -113,6 +113,7 @@ + = $this->endSection() ?> = $this->section('additionalInlineJs') ?> diff --git a/ci4/app/Views/themes/vuexy/form/group/viewUserGroupList.php b/ci4/app/Views/themes/vuexy/form/group/viewUserGroupList.php index c07a6792..16738c5c 100755 --- a/ci4/app/Views/themes/vuexy/form/group/viewUserGroupList.php +++ b/ci4/app/Views/themes/vuexy/form/group/viewUserGroupList.php @@ -11,27 +11,29 @@
+ user()->can('roles-permisos.create')): ?>
+
+ = lang("RolesPermisos.addRol") ?>
+= lang("RolesPermisos.addRol") ?>
+