mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Remove isOwner from IUser interface (#8888)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user