fix(editor): Remove isOwner from IUser interface (#8888)

This commit is contained in:
Csaba Tuncsik
2024-03-18 11:39:15 +01:00
committed by GitHub
parent 024be62693
commit 6955e8991c
24 changed files with 74 additions and 65 deletions

View File

@@ -7,7 +7,8 @@ import type {
REGULAR_NODE_CREATOR_VIEW,
AI_OTHERS_NODE_CREATOR_VIEW,
VIEWS,
} from './constants';
ROLE,
} from '@/constants';
import type { IMenuItem } from 'n8n-design-system';
import {
type GenericValue,
@@ -688,9 +689,9 @@ export type IPersonalizationSurveyVersions =
| IPersonalizationSurveyAnswersV2
| IPersonalizationSurveyAnswersV3;
export type IRole = 'default' | 'global:owner' | 'global:member' | 'global:admin';
export type InvitableRoleName = 'global:member' | 'global:admin';
export type Roles = typeof ROLE;
export type IRole = Roles[keyof Roles];
export type InvitableRoleName = Roles['Member' | 'Admin'];
export interface IUserResponse {
id: string;
@@ -714,7 +715,6 @@ export interface IUser extends IUserResponse {
isDefaultUser: boolean;
isPendingUser: boolean;
hasRecoveryCodesLeft: boolean;
isOwner: boolean;
inviteAcceptUrl?: string;
fullName?: string;
createdAt?: string;