Closed jaroslavsimak closed 1 year ago
Seems to be a typo. The docs also reference using viewAny()
: https://github.com/filamentphp/filament/blob/6a7dd0148cedb904c2eb920a8101de5a27dfbb5e/packages/panels/docs/03-resources/07-relation-managers.md?plain=1#L550
Package
filament/filament
Package Version
3.0.34
Laravel Version
10.20.0
Livewire Version
3.0.1
PHP Version
PHP 8.2.1
Problem description
Hello,
I am experiencing issue with RelationManager and Laravel Policies. RelationManager does not respect viewAny Laravel Policy function.
I tracked it down to this line of code where there is viewAll but most likely should be viewAny. I did not find any mentions of viewAll in Filament documentation.
Expected behavior
RelationManager respects Laravel Policy viewAny function.
Steps to reproduce
Reproduction repository
https://github.com/jaroslavsimak/filament-policy-bug
Relevant log output
No response