From b00ce7a0ed6cf90af99b4ab0308633366ff4d1cd Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 20 Mar 2024 21:54:13 +0100 Subject: [PATCH] Typescript type regeneration --- frontend/src/Types/goTypes.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/Types/goTypes.ts b/frontend/src/Types/goTypes.ts index fabc0c9..f43ede7 100644 --- a/frontend/src/Types/goTypes.ts +++ b/frontend/src/Types/goTypes.ts @@ -144,9 +144,14 @@ export interface NewProject { name: string; description: string; } +/** + * Used to change the role of a user in a project. + * If name is identical to the name contained in the token, the role can be changed. + * If the name is different, only a project manager can change the role. + */ export interface RoleChange { - role: 'project_manager' | 'user'; username: string; + role: 'project_manager' | 'user'; projectname: string; } export interface NameChange {