Skip to content

Commit

Permalink
updates jurisdictions to use OptionalAuthGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmalbert committed Sep 10, 2021
1 parent e2371f2 commit 9e07d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/src/jurisdictions/jurisdictions.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ValidationPipe,
} from "@nestjs/common"
import { ApiBearerAuth, ApiOperation, ApiTags } from "@nestjs/swagger"
import { DefaultAuthGuard } from "../auth/guards/default.guard"
import { OptionalAuthGuard } from "../auth/guards/optional-auth.guard"
import { AuthzGuard } from "../auth/guards/authz.guard"
import { ResourceType } from "../auth/decorators/resource-type.decorator"
import { mapTo } from "../shared/mapTo"
Expand All @@ -27,7 +27,7 @@ import {
@ApiTags("jurisdictions")
@ApiBearerAuth()
@ResourceType("jurisdiction")
@UseGuards(DefaultAuthGuard, AuthzGuard)
@UseGuards(OptionalAuthGuard, AuthzGuard)
@UsePipes(new ValidationPipe(defaultValidationPipeOptions))
export class JurisdictionsController {
constructor(private readonly jurisdictionsService: JurisdictionsService) {}
Expand Down

0 comments on commit 9e07d70

Please sign in to comment.