feat: Add user role select to users list settings page (#7796)

![CleanShot 2023-11-27 at 07 20
58](https://github.com/n8n-io/n8n/assets/5410822/40be0505-32ee-48a7-923e-ba6b4dbce670)
This commit is contained in:
Csaba Tuncsik
2023-11-27 13:38:03 +01:00
committed by GitHub
parent 5acb7b94c0
commit 137e23853f
9 changed files with 74 additions and 17 deletions

View File

@@ -84,9 +84,11 @@ function isPersonalizationSurveyV2OrLater(
return 'version' in data;
}
export const ROLE: { Owner: IRole; Member: IRole; Default: IRole } = {
export type Roles = { [R in IRole as Capitalize<R>]: R };
export const ROLE: Roles = {
Owner: 'owner',
Member: 'member',
Admin: 'admin',
Default: 'default', // default user with no email when setting up instance
};