Skip to content
Discussion options

You must be logged in to vote

In this case - Yes, it would be better to have a separate collection with its own API rules.

Technically it is possible to restrict the update to only of a single field, but it'll be difficult and error prone since you'll have to blacklist/disallow the submission of all other user fields manually, something like:

id = @request.auth.id || (
   @request.data.username:isset = false &&
   @request.data.avatar:isset = false &&
   ... list all fields except "clients"
)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@anim8rDev
Comment options

@ganigeorgiev
Comment options

Answer selected by anim8rDev
@anim8rDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants