mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: merge organization member db queries (#13542)
Merge members queries into 1 that also joins in the user table for username. Required to list organization members on UI/cli
This commit is contained in:
@ -179,6 +179,10 @@ func (m OrganizationMember) RBACObject() rbac.Object {
|
||||
WithOwner(m.UserID.String())
|
||||
}
|
||||
|
||||
func (m OrganizationMembersRow) RBACObject() rbac.Object {
|
||||
return m.OrganizationMember.RBACObject()
|
||||
}
|
||||
|
||||
func (m GetOrganizationIDsByMemberIDsRow) RBACObject() rbac.Object {
|
||||
// TODO: This feels incorrect as we are really returning a list of orgmembers.
|
||||
// This return type should be refactored to return a list of orgmembers, not this
|
||||
|
Reference in New Issue
Block a user