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

Method GetChatUsageLimitConfig

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

Source from the content-addressed store, hash-verified

3229}
3230
3231func (q *querier) GetChatUsageLimitConfig(ctx context.Context) (database.ChatUsageLimitConfig, error) {
3232 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3233 return database.ChatUsageLimitConfig{}, err
3234 }
3235 return q.db.GetChatUsageLimitConfig(ctx)
3236}
3237
3238func (q *querier) GetChatUsageLimitGroupOverride(ctx context.Context, groupID uuid.UUID) (database.GetChatUsageLimitGroupOverrideRow, error) {
3239 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