Skip to content

Commit b08fc44

Browse files
committed
remove unused function
1 parent 11ef507 commit b08fc44

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

coderd/authzquery/organization.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ import (
1010
"github.com/coder/coder/coderd/rbac"
1111
)
1212

13-
func (q *AuthzQuerier) GetAllOrganizationMembers(ctx context.Context, organizationID uuid.UUID) ([]database.User, error) {
14-
// TODO: @emyrk this is returned by the template ACL api endpoint. These users are full database.Users, which is
15-
// problematic since it bypasses the rbac.ResourceUser resource. We should probably return a organizationMember or
16-
// restricted user type here instead. The returned user also is checking the User resource, whereas we might want to
17-
// really check the OrganizationMember resource.
18-
return authorizedFetchSet(q.authorizer, q.database.GetAllOrganizationMembers)(ctx, organizationID)
19-
}
20-
2113
func (q *AuthzQuerier) GetGroupsByOrganizationID(ctx context.Context, organizationID uuid.UUID) ([]database.Group, error) {
2214
return authorizedFetchSet(q.authorizer, q.database.GetGroupsByOrganizationID)(ctx, organizationID)
2315
}

0 commit comments

Comments
 (0)