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

Method UpsertChatDebugLoggingAllowUsers

coderd/database/dbauthz/dbauthz.go:8045–8050  ·  view source on GitHub ↗
(ctx context.Context, allowUsers bool)

Source from the content-addressed store, hash-verified

8043}
8044
8045func (q *querier) UpsertChatDebugLoggingAllowUsers(ctx context.Context, allowUsers bool) error {
8046 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8047 return err
8048 }
8049 return q.db.UpsertChatDebugLoggingAllowUsers(ctx, allowUsers)
8050}
8051
8052func (q *querier) UpsertChatDebugRetentionDays(ctx context.Context, debugRetentionDays int32) error {
8053 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