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

Method UpsertChatPlanModeInstructions

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

Source from the content-addressed store, hash-verified

8116}
8117
8118func (q *querier) UpsertChatPlanModeInstructions(ctx context.Context, value string) error {
8119 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8120 return err
8121 }
8122 return q.db.UpsertChatPlanModeInstructions(ctx, value)
8123}
8124
8125func (q *querier) UpsertChatRetentionDays(ctx context.Context, retentionDays int32) error {
8126 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