Fix role synchronisation (#19469)
As title solves https://discord.com/channels/1130383047699738754/1491167098398052503
This commit is contained in:
@@ -47,6 +47,7 @@ export type {
|
||||
export type {
|
||||
ObjectPermissionManifest,
|
||||
FieldPermissionManifest,
|
||||
PermissionFlagManifest,
|
||||
RoleManifest,
|
||||
} from './roleManifestType';
|
||||
export type { ServerVariables } from './server-variables.type';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type PermissionFlagType } from '@/constants';
|
||||
import { type SyncableEntityOptions } from '@/application/syncableEntityOptionsType';
|
||||
|
||||
export type ObjectPermissionManifest = {
|
||||
export type ObjectPermissionManifest = SyncableEntityOptions & {
|
||||
objectUniversalIdentifier: string;
|
||||
canReadObjectRecords?: boolean;
|
||||
canUpdateObjectRecords?: boolean;
|
||||
@@ -9,13 +9,17 @@ export type ObjectPermissionManifest = {
|
||||
canDestroyObjectRecords?: boolean;
|
||||
};
|
||||
|
||||
export type FieldPermissionManifest = {
|
||||
export type FieldPermissionManifest = SyncableEntityOptions & {
|
||||
objectUniversalIdentifier: string;
|
||||
fieldUniversalIdentifier: string;
|
||||
canReadFieldValue?: boolean;
|
||||
canUpdateFieldValue?: boolean;
|
||||
};
|
||||
|
||||
export type PermissionFlagManifest = SyncableEntityOptions & {
|
||||
flag: PermissionFlagType;
|
||||
};
|
||||
|
||||
export type RoleManifest = SyncableEntityOptions & {
|
||||
label: string;
|
||||
description?: string;
|
||||
@@ -31,5 +35,5 @@ export type RoleManifest = SyncableEntityOptions & {
|
||||
canBeAssignedToApiKeys?: boolean;
|
||||
objectPermissions?: ObjectPermissionManifest[];
|
||||
fieldPermissions?: FieldPermissionManifest[];
|
||||
permissionFlags?: PermissionFlagType[];
|
||||
permissionFlags?: PermissionFlagManifest[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user