© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
EL REKT

Hide action table by role

I use spatie shield to set roles for users, I want to hide some actions in the table if the role is not super admin, how do I do that? I have tried this but it doesn't work.
Solution
Shouldn't it be
hasRole('super_admin')
hasRole('super_admin')
?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Export Action Filtered By Role
FilamentFFilament / ❓┊help
2y ago
Hide Table
FilamentFFilament / ❓┊help
17mo ago
RelationManager table custom query by role Policy
FilamentFFilament / ❓┊help
3y ago
Open Table Heading Model Action by URL
FilamentFFilament / ❓┊help
2y ago