Croco
Model Policy on page not working
It supposed to be attached to the model because the $policies array contains models.
Should I then set authorization on page like?:
Because this is not working either. I'm using Order model inside Billing page.
8 replies
Model Policy on page not working
Hmm, after several tests, this is indeed the case for resources, but not for pages, so policies are still not called.
I've tried several combinations :
😁 I know some does not exist.
My page:
I even tried to add this:
The only thing working is to overwrite delete Model method:
But this is not policy at all, I would like to make sure policy work at all time.
8 replies