For example, with Access Control, you can do things like the following:
draft
documents, and who can see published
documentsorders
, and no one else'sWe've filmed a quick video that walks through how Payload's access control works, and have provided an example repo that contains the code we go through in the video.
Payload's access control is completely code-based and highly declarative. It's built on top of a simple function-based pattern that, in practice, is super flexible and powerful.
Take a look at the video above. We'd love to know what you think about the format of these videos, and hope that you find them helpful as you learn how to build with Payload. We have lots more coming!
We've recently started a Discord community for the Payload community to interact in realtime. Often, Discord will be the first to hear about announcements like this move to open-source, and it can prove to be a great resource if you need help building with Payload. Click here to join!
Getting started is easy—and free forever. Just fire up a new terminal window and run the following command: