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

Method DeleteChatModelConfigByID

coderd/database/dbauthz/dbauthz.go:1984–1989  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

1982}
1983
1984func (q *querier) DeleteChatModelConfigByID(ctx context.Context, id uuid.UUID) error {
1985 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
1986 return err
1987 }
1988 return q.db.DeleteChatModelConfigByID(ctx, id)
1989}
1990
1991func (q *querier) DeleteChatModelConfigsByAIProviderID(ctx context.Context, aiProviderID uuid.UUID) error {
1992 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceAIProvider); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected