mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Remove roleId indirection (no-changelog) (#8413)
This commit is contained in:
committed by
GitHub
parent
1affebd85e
commit
d6deceacde
@@ -685,9 +685,9 @@ export type IPersonalizationSurveyVersions =
|
||||
| IPersonalizationSurveyAnswersV2
|
||||
| IPersonalizationSurveyAnswersV3;
|
||||
|
||||
export type IRole = 'default' | 'owner' | 'member' | 'admin';
|
||||
export type IRole = 'default' | 'global:owner' | 'global:member' | 'global:admin';
|
||||
|
||||
export type InvitableRoleName = 'member' | 'admin';
|
||||
export type InvitableRoleName = 'global:member' | 'global:admin';
|
||||
|
||||
export interface IUserResponse {
|
||||
id: string;
|
||||
@@ -695,11 +695,7 @@ export interface IUserResponse {
|
||||
lastName?: string;
|
||||
email?: string;
|
||||
createdAt?: string;
|
||||
globalRole?: {
|
||||
name: IRole;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
};
|
||||
role?: IRole;
|
||||
globalScopes?: Scope[];
|
||||
personalizationAnswers?: IPersonalizationSurveyVersions | null;
|
||||
isPending: boolean;
|
||||
@@ -720,7 +716,6 @@ export interface IUser extends IUserResponse {
|
||||
fullName?: string;
|
||||
createdAt?: string;
|
||||
mfaEnabled: boolean;
|
||||
globalRoleId?: number;
|
||||
}
|
||||
|
||||
export interface IVersionNotificationSettings {
|
||||
|
||||
Reference in New Issue
Block a user