I want to scope the hooks to user accounts, so I believe I need to override the controller in order to do set the owner_class_name and owner_id based on the authentication headers that Zapier sends.
(These can be used to find an account in my system)
Is there a recommended way to set an owner_class_name and owner_id on the ZapierRestHooks::Hook or should I just override the controller?
I want to scope the hooks to user accounts, so I believe I need to override the controller in order to do set the owner_class_name and owner_id based on the authentication headers that Zapier sends.
(These can be used to find an account in my system)
Is there a recommended way to set an owner_class_name and owner_id on the ZapierRestHooks::Hook or should I just override the controller?