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.

Can Field Access overrule Collection Access?

default discord avatar
lauge.comlast year
3

I have my users collection which i have a read access constrain on.


But i want a single field (fullName) to be readable for anyone. It doesnt seem to overrule the collections read access.



Should i really have to open read access on the collection and constraint every other field?

  • Yeah, you will need to inverse what you have, open up the collection and lock down the fields. I’m sure you can write up some reusable access control that you can use on each field

  • default discord avatar
    lauge.comlast year

    All right. Would be nice to have the possibility to lock everything but open up a single field at a time instead.

  • You could create a group field and put field access control on that, i.e.

    privateFields
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.