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

Method UpsertChatComputerUseProvider

coderd/database/dbauthz/dbauthz.go:8038–8043  ·  view source on GitHub ↗
(ctx context.Context, provider string)

Source from the content-addressed store, hash-verified

8036}
8037
8038func (q *querier) UpsertChatComputerUseProvider(ctx context.Context, provider string) error {
8039 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8040 return err
8041 }
8042 return q.db.UpsertChatComputerUseProvider(ctx, provider)
8043}
8044
8045func (q *querier) UpsertChatDebugLoggingAllowUsers(ctx context.Context, allowUsers bool) error {
8046 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