21 Replies
Because of config file.
whats is the errror
Scroll down and check
exclude
the same you
Because that
exclude.pages.Dashboard
answer your question "Why not add role shiled for dashborad page". Based on the config file, you're excluded "Dashboard" inside 'pages' for permissions/rolesForget it,Now I thises widgets when unselect the role not work why?
It's difficult to answer by just looking some photos
my widgets The permissions do not apply to it. When I select or deselect, nothing happens
Did you put
HasWidgetShield
traits?No
Then add, and read more on docs https://github.com/bezhanSalleh/filament-shield?tab=readme-ov-file#widgets
Why not hide class StatsOverviewWidget
?
Add what you want to hide inside "widgets" in this config
How?
The easiest way to be by "typing..." anyhow try like below
No, no, brother, I mean I want the permissions to apply to it StatsOverviewWidget and I do not hide that
No idea bro, suggested you to ask in #bezhansalleh-shield
When I have giving permission with this command:
I am getting error like this (See the screenshot):
code:
Permission is created to permissions table: (See the screenshot)
Could any help me for the same?