Hide Roles [in dashboard] depending upon roles #60
-
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.
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.
-
Fc |
Beta Was this translation helpful? Give feedback.
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
.