The Usuarios menu item is only visible to Administrators. Clients cannot access this section.
Viewing Users
Navigate from the dashboard to Usuarios. The page lists all system accounts with the following columns:| Column | Description |
|---|---|
| Id | Auto-generated numeric identifier |
| Nombre Completo | Full name of the account holder |
| Correo | Email address (unique across the system) |
| Rol | Administrador or Cliente |
| Editar | Link to the edit form |
| Eliminar | Delete button (disabled for your own account) |
Adding a New User
Click '+ Nuevo Usuario'
On the user list page, click + Nuevo Usuario. This opens
/views/usuarios/nuevo_usuario.php.Fill in the user form
Complete all required fields:
- Nombre Completo — Full name of the person
- Correo Electrónico — A unique email address for login
- Contraseña temporal — An initial password for the account
- Rol del Usuario — Select
AdministradororCliente
Editing a User
Click 'Editar' on the user row
On the user list, click Editar next to the account you want to update. This opens
/views/usuarios/editar_usuario.php?id={id}.Update the fields
You can change the user’s Nombre Completo, Correo Electrónico, Rol, or Contraseña. All editable fields are pre-filled with the current values.
Deleting a User
Click the Eliminar button on a user’s row. A confirmation modal appears before deletion is performed. The delete button is disabled for your own account — you cannot delete the account you are currently logged in with.Roles
| Role | ID | Access Level |
|---|---|---|
Administrador | 1 | Full access to all modules, including Users |
Cliente | 2 | Can view available rooms and their own reservations only |
Clients vs. Users
| Concept | Table | Purpose |
|---|---|---|
| User | usuarios | Login credential with a role; used for authentication |
| Client | clientes | Guest record with name and phone; used for reservations |
id_usuario foreign key on the clientes table.