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

Method UpsertChatAdvisorConfig

coderd/database/dbauthz/dbauthz.go:8024–8029  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

8022}
8023
8024func (q *querier) UpsertChatAdvisorConfig(ctx context.Context, value string) error {
8025 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8026 return err
8027 }
8028 return q.db.UpsertChatAdvisorConfig(ctx, value)
8029}
8030
8031func (q *querier) UpsertChatAutoArchiveDays(ctx context.Context, autoArchiveDays int32) error {
8032 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected