feathers-hooks-common icon indicating copy to clipboard operation
feathers-hooks-common copied to clipboard

Authorization with SetFields on many to many relationships tables

Open chrisbag opened this issue 4 years ago • 0 comments
trafficstars

Hello,

Thanks for the awesome library. SetField works well to handle authorizations when current userID is in the table.

Let's say I have a many to many relation such as :

  • User has Many Contacts
  • Contacts have many Users
  • I therefore have a user-contact table

What would be the feathers way to handle authorization on the Contact Table ? Could you implement it with setFields ?

Thanks a lot for your help,

chrisbag avatar Aug 17 '21 09:08 chrisbag