Skip to content

Commit

Permalink
fix: allow jurisdictional admin for map layers (#3855)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Feb 6, 2024
1 parent 44ebf26 commit 873929d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/src/map-layers/map-layers.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { ApiBearerAuth, ApiOperation, ApiTags } from "@nestjs/swagger"
import { MapLayersService } from "./map-layers.service"
import { ResourceType } from "../auth/decorators/resource-type.decorator"
import { OptionalAuthGuard } from "../auth/guards/optional-auth.guard"
import { AuthzGuard } from "../auth/guards/authz.guard"
import { defaultValidationPipeOptions } from "../shared/default-validation-pipe-options"
import { mapTo } from "../shared/mapTo"
import { MapLayerDto } from "./dto/map-layer.dto"
import { MapLayersQueryParams } from "./dto/map-layers-query-params"
import { AdminOrJurisdictionalAdminGuard } from "../auth/guards/admin-or-jurisidictional-admin.guard"

@Controller("/mapLayers")
@ApiTags("mapLayers")
@ApiBearerAuth()
@ResourceType("mapLayer")
@UseGuards(OptionalAuthGuard, AuthzGuard)
@UseGuards(OptionalAuthGuard, AdminOrJurisdictionalAdminGuard)
@UsePipes(new ValidationPipe(defaultValidationPipeOptions))
export class MapLayersController {
constructor(private readonly mapLayerService: MapLayersService) {}
Expand Down

0 comments on commit 873929d

Please sign in to comment.