Skip to content

Commit c69f966

Browse files
committed
feat: allow assistants to delete entries
1 parent 05e4244 commit c69f966

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/backend/src/research/entries/entries.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Body, Controller, Delete, Get, Param, Patch, Post } from "@nestjs/common";
22
import { ApiTags, ApiOperation, ApiUnprocessableEntityResponse } from "@nestjs/swagger";
33
import { ErrorResponseDto } from "../../common/dto/error.dto";
4-
import { Roles } from "../../system/users/roles.decorator";
5-
import { UserRole } from "../../system/users/user.entity";
64
import { EntriesService } from "./entries.service";
75
import { EntryCreationDto, EntryResponseDto, EntryMutationDto } from "./entry.dto";
86
import { Serialize } from "../../common/decorators/serialize";
@@ -43,7 +41,6 @@ export class EntriesController {
4341

4442
@Delete(":id")
4543
@ApiOperation({ summary: "Delete a entry by ID" })
46-
@Roles(UserRole.ADMIN)
4744
delete(@Param("id") id: string) {
4845
return this.entriesService.remove(+id);
4946
}

0 commit comments

Comments
 (0)