Authorize Imports: Apply different policy methods on create and update

I am using authorize method for Importer to show it only to the users that have create authorization (via policy) for the respective model. However, as I'm setting records to be updated if a matching key already exists, I want update policy authorization to be checked for in such cases. How can I apply update authorization in such cases? Basically, I want authorization method to differ depending on whether a new record is being created or an existing record is being updated
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server