diff --git a/packages/payload/src/collections/operations/docAccess.ts b/packages/payload/src/collections/operations/docAccess.ts index eec1e4b70e7..5eb3c30a016 100644 --- a/packages/payload/src/collections/operations/docAccess.ts +++ b/packages/payload/src/collections/operations/docAccess.ts @@ -1,4 +1,4 @@ -import type { CollectionPermission, SanitizedCollectionPermission } from '../../auth/index.js' +import type { SanitizedCollectionPermission } from '../../auth/index.js' import type { AllOperations, PayloadRequest } from '../../types/index.js' import type { Collection } from '../config/types.js' @@ -45,13 +45,12 @@ export async function docAccessOperation(args: Arguments): Promise, +): SanitizedPermissions { if (data.canAccessAdmin === false) { delete data.canAccessAdmin }