feathersjs-ecosystem/feathers-hooks-common

Authorization with SetFields on many to many relationships tables

chrisbag opened this issue · 0 comments

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,