Modules represent independently controllable sections or features of the application. Each module registered in Nuxt Secure becomes a row in the permissions matrix, allowing administrators to grant or deny the five permission actions to each profile.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Israel-Perez/Nuxt-Secure/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Catálogo de Módulos page lists all application modules. From here you can create new modules, edit their names, view their details, and delete them. Access requires thebitConsulta permission on the MÓDULO module. Without it, the application redirects you to / before the page renders.
Filtering modules
A single search filter is available: a case-insensitive partial match onstrNombreModulo. The filter applies with a 400 ms debounce. Click Limpiar to reset.
Creating a module
Click Nuevo Módulo to open the creation form. This button requires bothbitConsulta and bitAgregar on the MÓDULO module.
Enter a module name
Provide the name for the module in
strNombreModulo (e.g., USUARIO, PERMISOS-PERFIL, INVENTARIO). This name is the key used in RBAC lookups throughout the application.Save the module
Click Guardar Registro. The module is immediately available in the permissions matrix.
Assign permissions
After creating the module, navigate to the Permissions matrix and configure which profiles can access it and what actions they can perform.
Editing a module
Click the edit icon on any row to rename the module. This requiresbitEditar on the MÓDULO module.
Deleting a module
Click the delete icon on any row and confirm the dialog. This requiresbitEliminar on the MÓDULO module.
Menu association
Themenu table links modules to navigation menu items. Each row in menu associates a menu entry (idMenu) with a module (idModulo). This allows the sidebar navigation to show or hide items based on whether the current user has bitConsulta on the linked module.
| Column | Type | Description |
|---|---|---|
id | serial PK | Auto-increment primary key |
idMenu | integer | Menu item identifier |
idModulo | integer FK | References modulo.id |
Permission gates
Actions on the modules page are gated by theMÓDULO module:
| Permission flag | Controls |
|---|---|
bitConsulta | View the modules table and access the page |
bitAgregar | Show the Nuevo Módulo button |
bitEditar | Show the edit button per row |
bitEliminar | Show the delete button per row |
bitDetalle | Show the detail view button per row |
Module data model
Themodulo table is defined in server/database/schema.ts:
| Column | Type | Required | Description |
|---|---|---|---|
id | serial PK | Yes | Auto-increment primary key |
strNombreModulo | varchar(255) | Yes | Module name used as the RBAC key |
Related pages
Permissions matrix
Assign permissions to each profile for every module registered here.
Role-based access control
Understand how modules, profiles, and permission flags work together.