mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: show organization name for groups on user profile (#14448)
This commit is contained in:
@@ -183,6 +183,10 @@ func (g Group) RBACObject() rbac.Object {
|
||||
})
|
||||
}
|
||||
|
||||
func (g GetGroupsRow) RBACObject() rbac.Object {
|
||||
return g.Group.RBACObject()
|
||||
}
|
||||
|
||||
func (gm GroupMember) RBACObject() rbac.Object {
|
||||
return rbac.ResourceGroupMember.WithID(gm.UserID).InOrg(gm.OrganizationID).WithOwner(gm.UserID.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user