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 {