Replies: 1 comment 1 reply
-
Do the same idea of this #1948 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there a short code to show what roles a user has if assigned to more than 1 teams using teams permissions?
Need to show a user has any roles in CMS users for superadmin view or when a user choose by himself to select a team after logging in.
because I made the code it myself, will be deleted if update vendor.
if there is no code like
setGlobalShowAllPermissions
, all roles for one user will not appear if attached to a team.must set for
setPermissionsTeamId
to show a user has any roles in that team, but it's not possible to display all user roles in CMS user for superadmin view and others.controller
Spatie\Permission\Traits\HasRoles.php
Spatie\Permission\helpers.php
Spatie\Permission\PermissionRegistrar.php
Beta Was this translation helpful? Give feedback.
All reactions