Files
klz-cables.com/.pnpm-store/v10/files/a1/12f7a364e5f658d1f77d89269d5dcc0da53fd0a8c1a62e47d680a332103104c0880a508354df864bf0daf62ff00767edecfcf45576a1e2ae1d3603c1331593
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

13 lines
644 B
Plaintext

import type { PayloadRequest } from '../types/index.js';
/**
* Protects admin-only routes, server functions, etc.
* The requesting user must either:
* a. pass the `access.admin` function on the `users` collection, if defined
* b. match the `config.admin.user` property on the Payload config
* c. if no user is present, and there are no users in the system, allow access (for first user creation)
* @throws {Error} Throws an `Unauthorized` error if access is denied that can be explicitly caught
*/
export declare const canAccessAdmin: ({ req }: {
req: PayloadRequest;
}) => Promise<void>;
//# sourceMappingURL=canAccessAdmin.d.ts.map