Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Limit the REST api to certain authed collections

default discord avatar
mosattler2 years ago
2

Hi!



I have two collections that have auth activated:


- staff (admin user)


- users



The staff can log into the admin interface, users can only login to the app.



Since my app is SSR, I am using the local API for the app, and the REST Api is only used by staff users (through the admin interface).



I was wondering if there is a way on how I could deactivate the REST api for my

user

collection. This would greatly streamline access control for me.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.