access-control-demo
access-control-demo copied to clipboard
A demo of the powerful access control measures built into Payload
Updated the demo code to use payload version 2. Added editor Example uses postgres db server updated generics removed from seed.ts types fixes
Hi! This adds typings to the user object. Better and also consistent with how its done in src/access/isAdmin.ts
I love this demo and I tried to copy code from it, but then I got errors related to ESM vs CommonJS: ```/home/node/app/payload.config.js:1 payload_1 | import buildConfig from 'payload/config'; payload_1...