Skip to content

Commit

Permalink
disable session assign to user
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed May 9, 2024
1 parent 6114585 commit f6edbf0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/e-commerce/src/user/session/guard/session.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export class SessionGuard implements CanActivate {
const session = request.headers['x-session-id'];
// if session not provided
if (!session) return false;
return await this.validateSessionService.validate(request, session);
return await this.validateSessionService.validateIgnoreUser(
request,
session,
);
}
}

0 comments on commit f6edbf0

Please sign in to comment.