Files
klz-cables.com/.pnpm-store/v10/files/0a/f3dc203c83b7f15d02399b1a8a84a84c31a63f916e496e2185ebb901c1a19a5b15b1e4a22452d53af45b3f2c26d8fec8dde0cee27285d8951f55ff8bbc10c8
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

26 lines
1.3 KiB
Plaintext

import type { SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions } from '../auth/types.js';
import type { ClientField, Field } from '../fields/config/types.js';
import type { Operation } from '../types/index.js';
/**
* Gets read and operation-level permissions for a given field based on cascading field permissions.
* @returns An object with the following properties:
* - `operation`: Whether the user has permission to perform the operation on the field (`create` or `update`).
* - `permissions`: The field-level permissions.
* - `read`: Whether the user has permission to read the field.
*/
export declare const getFieldPermissions: ({ collectionPermissions, field, operation, parentName, permissions, }: {
readonly collectionPermissions?: SanitizedDocumentPermissions;
readonly field: ClientField | Field;
readonly operation: Operation;
readonly parentName: string;
readonly permissions: SanitizedFieldPermissions | SanitizedFieldsPermissions;
}) => {
operation: boolean;
/**
* The field-level permissions. This can be equal to the permissions passed to the
* `getFieldPermissions` function if the field has no name.
*/
permissions: SanitizedFieldPermissions | SanitizedFieldsPermissions;
read: boolean;
};
//# sourceMappingURL=getFieldPermissions.d.ts.map