Actualización módulo de roles e implementación de permission middleware

This commit is contained in:
2026-07-10 14:56:18 +00:00
parent 8248389269
commit 06b4ab7166
7 changed files with 146 additions and 41 deletions

View File

@ -9,8 +9,7 @@ export class AuthService {
userName:string,
password:string
){
const user =
await userModel.findOne({
const user = await userModel.findOne({
userName
}).populate("roleId");