Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filament Shield permissions are not applying on some pages #79

Closed
mnafullstack opened this issue Jul 22, 2022 · 6 comments
Closed

Filament Shield permissions are not applying on some pages #79

mnafullstack opened this issue Jul 22, 2022 · 6 comments

Comments

@mnafullstack
Copy link

I've installed laravel 9.x version with filament, filament-shield, spatie laravel-permission, filament blog, and some other packages. Everything is working fine but the filament shield permissions are not working correctly.

This is my normal user role settings and I have disabled all permissions to the normal user role except the dashboard page, but the user can still see all the pages in his account except the "Roles" and "Users" pages. the permissions are just implemented on these two pages, the rest of the pages are still showing in the user account.

https://www.linkpicture.com/q/filament.png

What can be the issue, I've installed all the packages with the documentation given on the packages documentation page?

@bezhanSalleh
Copy link
Owner

bezhanSalleh commented Jul 22, 2022

checkout the readme for https://github.com/bezhanSalleh/filament-shield#pages enforcing page level permissions.

fixed in #69 ... will be out by the weekend

@mnafullstack
Copy link
Author

Hi bazhanSalleh, thank you very much for your response. I have tried to set permissions using HasPageShield trait in the pages but If I apply this trait, all users cannot access this trait applied pages.

@mnafullstack
Copy link
Author

And I will be waiting for "brings some quality of life imporvements" to be published in the main package. Thank you.

@Tushar4343
Copy link

i tried all settings not working. also not hide from navigation and also no permission still normal user access to delete record even force delete also do. please fix these problems or make video on that topic & upload on YouTube.

@Tushar4343
Copy link

old version is awesome and definitely better. setting menu is really help full

@bezhanSalleh
Copy link
Owner

bezhanSalleh commented Sep 25, 2022

@Tushar4343 Not clear on your issue, setting was an extra step that felt kinda redundant so I removed it, so if you still have an issue ask it on discord instead of commenting on closed issues. Ppl on discord can get you an answer faster than here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants