Hide Roles [in dashboard] depending upon roles #60
Answered
by
pktharindu
BilalMajeedDarvis
asked this question in
Q&A
-
How can we hide roles depending upon the role/s given to a user? Also how can we hide certain role/s? For instance there is super admin and admin but we don't them in our roles so how can we accomplish that? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
pktharindu
Oct 27, 2022
Replies: 2 comments
-
Hey @BilalMajeedDarvis, as per Nova docs, you could prevent specific roles from being listed in the resource index by extend the For the rest of the actions like view, update, delete, etc, it can be done via the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pktharindu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @BilalMajeedDarvis, as per Nova docs, you could prevent specific roles from being listed in the resource index by extend the
Role
resource and filtering them out through theindexQuery()
.For the rest of the actions like view, update, delete, etc, it can be done via the
RolePolicy
.