diff --git a/backend/core/src/map-layers/map-layers.controller.ts b/backend/core/src/map-layers/map-layers.controller.ts index cc25386ebb..b0d912f575 100644 --- a/backend/core/src/map-layers/map-layers.controller.ts +++ b/backend/core/src/map-layers/map-layers.controller.ts @@ -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) {}