mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Remove debug console log from PermissionsGuard
This commit is contained in:
@ -29,7 +29,6 @@ export class PermissionsGuard extends AuthGuard('jwt') {
|
||||
|
||||
const request = context.switchToHttp().getRequest();
|
||||
const user = request.user; // User is now available after AuthGuard
|
||||
console.log('user', user);
|
||||
|
||||
const userRole = user?.role.type as RoleType;
|
||||
if (!userRole || !RolePermissions[userRole]) {
|
||||
|
Reference in New Issue
Block a user