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

Method ListChatUsageLimitOverrides

coderd/database/dbauthz/dbauthz.go:6199–6204  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

6197}
6198
6199func (q *querier) ListChatUsageLimitOverrides(ctx context.Context) ([]database.ListChatUsageLimitOverridesRow, error) {
6200 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
6201 return nil, err
6202 }
6203 return q.db.ListChatUsageLimitOverrides(ctx)
6204}
6205
6206func (q *querier) ListProvisionerKeysByOrganization(ctx context.Context, organizationID uuid.UUID) ([]database.ProvisionerKey, error) {
6207 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.ListProvisionerKeysByOrganization)(ctx, organizationID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected