MCPcopy Index your code
hub / github.com/coder/coder / GetOrganizations

Method GetOrganizations

coderd/database/dbauthz/dbauthz.go:3863–3868  ·  view source on GitHub ↗
(ctx context.Context, args database.GetOrganizationsParams)

Source from the content-addressed store, hash-verified

3861}
3862
3863func (q *querier) GetOrganizations(ctx context.Context, args database.GetOrganizationsParams) ([]database.Organization, error) {
3864 fetch := func(ctx context.Context, _ interface{}) ([]database.Organization, error) {
3865 return q.db.GetOrganizations(ctx, args)
3866 }
3867 return fetchWithPostFilter(q.auth, policy.ActionRead, fetch)(ctx, nil)
3868}
3869
3870func (q *querier) GetOrganizationsByUserID(ctx context.Context, userID database.GetOrganizationsByUserIDParams) ([]database.Organization, error) {
3871 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetOrganizationsByUserID)(ctx, userID)

Callers

nothing calls this directly

Calls 2

fetchWithPostFilterFunction · 0.85
GetOrganizationsMethod · 0.65

Tested by

no test coverage detected