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

Method UpsertChatTemplateAllowlist

coderd/database/dbauthz/dbauthz.go:8139–8144  ·  view source on GitHub ↗
(ctx context.Context, templateAllowlist string)

Source from the content-addressed store, hash-verified

8137}
8138
8139func (q *querier) UpsertChatTemplateAllowlist(ctx context.Context, templateAllowlist string) error {
8140 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8141 return err
8142 }
8143 return q.db.UpsertChatTemplateAllowlist(ctx, templateAllowlist)
8144}
8145
8146func (q *querier) UpsertChatTitleGenerationModelOverride(ctx context.Context, value string) error {
8147 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