(ctx context.Context, userID uuid.UUID)
| 3243 | } |
| 3244 | |
| 3245 | func (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 | |
| 3252 | func (q *querier) GetChatUserPromptsByChatID(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams) ([]database.GetChatUserPromptsByChatIDRow, error) { |
| 3253 | // Authorize read on the parent chat. |
nothing calls this directly
no test coverage detected