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

Method GetChatUsageLimitUserOverride

coderd/database/dbauthz/dbauthz.go:3245–3250  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

3243}
3244
3245func (q *querier) GetChatUsageLimitUserOverride(ctx context.Context, userID uuid.UUID) (database.GetChatUsageLimitUserOverrideRow, error) {
3246 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3247 return database.GetChatUsageLimitUserOverrideRow{}, err
3248 }
3249 return q.db.GetChatUsageLimitUserOverride(ctx, userID)
3250}
3251
3252func (q *querier) GetChatUserPromptsByChatID(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams) ([]database.GetChatUserPromptsByChatIDRow, error) {
3253 // Authorize read on the parent chat.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected