bezhanSalleh / filament-shield

The easiest and most intuitive way to add access management to your Filament Admin Resources, Pages & Widgets through `spatie/laravel-permission`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Role Resource is accessible for everyone

jals-es opened this issue · comments

Hi, there are problems with the permissions of RoleResource because it's accesible for everyone without having role or if his role doesn't have role permissions.
Captura de pantalla 2024-04-16 a las 12 48 53

As I can see, I have this role permisons on resources tabs:
Captura de pantalla 2024-04-16 a las 12 51 51

But if I active custom permisions I can see this other shield permissions:
Captura de pantalla 2024-04-16 a las 12 51 58

I think the permissions are duplicated.

If you don't run the fresh flag when you you publish or change a resource's namespace new roles will be generated.

@bezhanSalleh I have similar problem after composer update upgraded it to 3.2.4. I reverted back to 3.2.1 and it doesn't have the problem. I haven't publish or change resources.

same issue here

I also have the same issue on a fresh Laravel app.

Try #372 n let me know

Yes, it works. It fixed the problem for me! Thank you!