Skip to content

Commit

Permalink
refactor: remove guard for get event-types
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry committed Jun 17, 2024
1 parent 17701e9 commit d412040
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "@nestjs/common";
import { ApiTags as DocsTags } from "@nestjs/swagger";

import { EVENT_TYPE_READ, EVENT_TYPE_WRITE, SUCCESS_STATUS } from "@calcom/platform-constants";
import { EVENT_TYPE_WRITE, SUCCESS_STATUS } from "@calcom/platform-constants";
import { CreateEventTypeInput_2024_06_14, UpdateEventTypeInput_2024_06_14 } from "@calcom/platform-types";

@Controller({
Expand Down Expand Up @@ -53,8 +53,6 @@ export class EventTypesController_2024_06_14 {
}

@Get("/:eventTypeId")
@Permissions([EVENT_TYPE_READ])
@UseGuards(AccessTokenGuard)
async getEventType(
@Param("eventTypeId") eventTypeId: string,
@GetUser() user: UserWithProfile
Expand All @@ -72,8 +70,6 @@ export class EventTypesController_2024_06_14 {
}

@Get("/")
@Permissions([EVENT_TYPE_READ])
@UseGuards(AccessTokenGuard)
async getEventTypes(@GetUser() user: UserWithProfile): Promise<GetEventTypesOutput_2024_06_14> {
const eventTypes = await this.eventTypesService.getUserEventTypes(user.id);

Expand Down

0 comments on commit d412040

Please sign in to comment.