Support of Policy's custom response

Currently, filament returns 403 no matter what is the response of the policy (like 404/denyAsNotFound) I opened a discussion here: https://github.com/filamentphp/filament/discussions/14910
GitHub
Support of Policy's custom response · filamentphp filament · Discus...
Currently, filament returns 403 no matter what is the response of the policy (like 404/denyAsNotFound) public static function can(string $action, ?Model $record = null): bool { if (static::shouldSk...
2 Replies
toeknee
toeknee4w ago
404 is a 404, 403 is when they are not permitted access. I suspect they are. not permitted access to that panel full stop. If it is policy based... they it is a permission base. 404 is if the url or item cannot be found. If it's hit the policy it can be found.
momkine
momkineOP4w ago
Thank you for your answer, I answered you on github
Want results from more Discord servers?
Add your server