Closed fiurino closed 6 years ago
I have stumbled upon this one too and by looking at the code you can see that 401 is hardcoded into the ACL middleware. However, you can easily replace it with your own middleware, thus I solved this problem in the following way:
Kodeine\Acl\Middleware\HasPermission
handle
method from the original HasPermission middleware and replace 401 with 403app/Http/Kernel.php
replace 'acl' => 'Kodeine\Acl\Middleware\HasPermission'
with your own middlewareExtending the middleware is a good option for right now.
Hello, ACL validation replies with a 401 (unauthorized) instead of a 403 (forbidden). Is there a specific reason for that?
Thanks in advance.