Skip to content

Commit

Permalink
chore(skilavottord): Disable IdsUserGuard for all environments except…
Browse files Browse the repository at this point in the history
… prod (#16535)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
birkirkristmunds and kodiakhq[bot] authored Oct 23, 2024
1 parent 4f25a5c commit 6e20081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/skilavottord/ws/src/app/modules/auth/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export const Authorize = (
): MethodDecorator & ClassDecorator => {
// IdsUserGuard is causing constant reload on local and DEV in the skilavottord-web
// To 'fix' it for now we just skip using it for non production
if (!environment.production) {
if (process.env.NODE_ENV !== 'production') {
logger.info(`AuthGuard environment`, {
isProduction: environment.production,
environment: process.env.NODE_ENV,
})
return applyDecorators(
SetMetadata('roles', roles),
Expand Down

0 comments on commit 6e20081

Please sign in to comment.