Shield Permission Widget Issue

Hello, I have an issue where Widgets under plain Filament/Widgets namespace are recognized into shield permissions. But ones that are within resource example: Filament/UserResources/Widgets/** they are not recognized in shield permissions sysstem. I am using trait HasWidgetShield on all of them.
Solution:
Fixed it as soon as I posted it here.. Issue was discovering of widgets, as soon as I added them into FilamentPanelProvider under ->widgets([]), they are working!...
Jump to solution
4 Replies
Dennis Koch
Dennis Koch5mo ago
I bet it's a config thing but maybe ask in #bezhansalleh-shield
Solution
SuperUserDo
SuperUserDo5mo ago
Fixed it as soon as I posted it here.. Issue was discovering of widgets, as soon as I added them into FilamentPanelProvider under ->widgets([]), they are working!
SuperUserDo
SuperUserDoOP5mo ago
Because auto descovery works only within Filament/Widgets..
Dennis Koch
Dennis Koch5mo ago
I just wanted to ask, whether you already registered it 😅

Did you find this page helpful?