Files
klz-cables.com/.pnpm-store/v10/files/83/69b6a936ff6c7b1b91281cb86e764874d03aba3a9dbb2f68d51b974de639d337c0dbcd8ecdcfe9227af821357f22b3b7c773ee96856005cd2110466dce0aec
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

12 lines
642 B
Plaintext

import type { Validate } from '../fields/config/types.js';
/**
* Prevents "accidental lockouts" where a user makes an update that removes their own access to the preset.
* This is effectively an access control function proxied through a `validate` function.
* How it works:
* 1. Creates a temporary record with the incoming data
* 2. Attempts to read and update that record with the incoming user
* 3. If either of those fail, throws an error to the user
* 4. Once finished, prevents the temp record from persisting to the database
*/
export declare const preventLockout: Validate;
//# sourceMappingURL=preventLockout.d.ts.map