Hiding the super_admin role
Hello everyone, user creation, I have a select with the roles (super_admin, panel_user, manager_user, seller_user), I would like to hide the super_admin information from the other roles.
I'm using filament shield plugin.
how do I do this?
4 Replies
Are you using options() or relationship() on the select?
Options(with RolesEnum) on the select
Hmm. Ok. I don’t think it’s going to be possible with an enum, since their values aren’t conditional.
Why an enum instead of utilizing the package to derive them from the model?
Might get more help in #bezhansalleh-shield though as it relates to the plugin too.
I am able to achieved this using relationship. In my case, I also added role group on top of role from filament-shield.