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

Method ListChatUsageLimitGroupOverrides

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

Source from the content-addressed store, hash-verified

6190}
6191
6192func (q *querier) ListChatUsageLimitGroupOverrides(ctx context.Context) ([]database.ListChatUsageLimitGroupOverridesRow, error) {
6193 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
6194 return nil, err
6195 }
6196 return q.db.ListChatUsageLimitGroupOverrides(ctx)
6197}
6198
6199func (q *querier) ListChatUsageLimitOverrides(ctx context.Context) ([]database.ListChatUsageLimitOverridesRow, error) {
6200 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected