Skip to content

Commit fda0d82

Browse files
authored
Merge pull request #376 from openscript-ch/375-deleting-entries-in-questionnaire-not-working-for-assistant
375 deleting entries in questionnaire not working for assistant
2 parents 05e4244 + add27d3 commit fda0d82

File tree

7 files changed

+718
-591
lines changed

7 files changed

+718
-591
lines changed

.changeset/twelve-snakes-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/backend": patch
3+
---
4+
5+
Allow assistants to delete entries

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
}

apps/frontend/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@nanostores/react": "^0.8.4",
2626
"@quassel/ui": "workspace:*",
2727
"@quassel/utils": "workspace:*",
28-
"@tanstack/react-query": "^5.67.2",
29-
"@tanstack/react-router": "^1.114.3",
28+
"@tanstack/react-query": "^5.67.3",
29+
"@tanstack/react-router": "^1.114.17",
3030
"nanostores": "^0.11.4",
3131
"openapi-fetch": "0.13.4",
3232
"openapi-react-query": "0.3.0",
@@ -35,8 +35,8 @@
3535
},
3636
"devDependencies": {
3737
"@anolilab/unplugin-favicons": "^1.0.5",
38-
"@tanstack/router-devtools": "^1.114.3",
39-
"@tanstack/router-plugin": "^1.114.3",
38+
"@tanstack/router-devtools": "^1.114.21",
39+
"@tanstack/router-plugin": "^1.114.17",
4040
"@testing-library/jest-dom": "^6.6.3",
4141
"@testing-library/react": "^16.2.0",
4242
"@types/react": "^19.0.10",
@@ -48,7 +48,7 @@
4848
"openapi-typescript": "^7.6.1",
4949
"openapi-typescript-helpers": "^0.0.15",
5050
"typescript": "^5.8.2",
51-
"vite": "^6.2.1",
51+
"vite": "^6.2.2",
5252
"vitest": "^3.0.8"
5353
}
5454
}

libs/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@types/react-dom": "^19.0.4",
4747
"@vitejs/plugin-react": "^4.3.4",
4848
"typescript": "^5.8.2",
49-
"vite": "^6.2.1",
49+
"vite": "^6.2.2",
5050
"vite-plugin-dts": "^4.5.3",
5151
"vite-plugin-svgr": "^4.3.0"
5252
}

libs/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"devDependencies": {
3434
"@eslint/js": "^9.22.0",
3535
"typescript": "^5.8.2",
36-
"vite": "^6.2.1",
36+
"vite": "^6.2.2",
3737
"vite-plugin-dts": "^4.5.3",
3838
"vitest": "^3.0.8"
3939
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"eslint-plugin-react-refresh": "^0.4.19",
3232
"globals": "^16.0.0",
3333
"nx": "^20.5.0",
34-
"typescript-eslint": "^8.26.0"
34+
"typescript-eslint": "^8.26.1"
3535
},
3636
"engines": {
3737
"node": ">=22.0.0"

0 commit comments

Comments
 (0)