Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
619 B
Plaintext
16 lines
619 B
Plaintext
import type { Data, PayloadRequest, SanitizedCollectionConfig, SanitizedDocumentPermissions, SanitizedGlobalConfig } from 'payload';
|
|
export declare const getDocumentPermissions: (args: {
|
|
collectionConfig?: SanitizedCollectionConfig;
|
|
data: Data;
|
|
globalConfig?: SanitizedGlobalConfig;
|
|
/**
|
|
* When called for creating a new document, id is not provided.
|
|
*/
|
|
id?: number | string;
|
|
req: PayloadRequest;
|
|
}) => Promise<{
|
|
docPermissions: SanitizedDocumentPermissions;
|
|
hasPublishPermission: boolean;
|
|
hasSavePermission: boolean;
|
|
}>;
|
|
//# sourceMappingURL=getDocumentPermissions.d.ts.map |