(ctx context.Context)
| 3229 | } |
| 3230 | |
| 3231 | func (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 | |
| 3238 | func (q *querier) GetChatUsageLimitGroupOverride(ctx context.Context, groupID uuid.UUID) (database.GetChatUsageLimitGroupOverrideRow, error) { |
| 3239 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected