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

Method UpsertChatSystemPrompt

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

Source from the content-addressed store, hash-verified

8130}
8131
8132func (q *querier) UpsertChatSystemPrompt(ctx context.Context, value string) error {
8133 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8134 return err
8135 }
8136 return q.db.UpsertChatSystemPrompt(ctx, value)
8137}
8138
8139func (q *querier) UpsertChatTemplateAllowlist(ctx context.Context, templateAllowlist string) error {
8140 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