You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in controllers before checking permissions I'm checking who wants to 'view' or 'update' something by session.userId and then get result from db and check who is owner of the record, if session.userId==dbRecord.userId then I'm checking 'owner-view' permissions for this user or else 'other-view' (if admin want to view record or other user)
Hi,
Is there another way of only allowing resource owners to access a certain resource? The documentation slightly touches on this by saying
but this clutter my database and make a collection for every user? Is there no other way of achieving this?
The text was updated successfully, but these errors were encountered: