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

Method UpsertChatUsageLimitUserOverride

coderd/database/dbauthz/dbauthz.go:8167–8172  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertChatUsageLimitUserOverrideParams)

Source from the content-addressed store, hash-verified

8165}
8166
8167func (q *querier) UpsertChatUsageLimitUserOverride(ctx context.Context, arg database.UpsertChatUsageLimitUserOverrideParams) (database.UpsertChatUsageLimitUserOverrideRow, error) {
8168 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8169 return database.UpsertChatUsageLimitUserOverrideRow{}, err
8170 }
8171 return q.db.UpsertChatUsageLimitUserOverride(ctx, arg)
8172}
8173
8174//nolint:revive // Parameter name matches the generated querier interface.
8175func (q *querier) UpsertChatWorkspaceTTL(ctx context.Context, workspaceTtl string) error {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected