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

Method GetChatDebugLoggingAllowUsers

coderd/database/dbauthz/dbauthz.go:2878–2886  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2876}
2877
2878func (q *querier) GetChatDebugLoggingAllowUsers(ctx context.Context) (bool, error) {
2879 // The allow-users flag is a deployment-wide setting read by any
2880 // authenticated chat user. We only require that an explicit actor
2881 // is present in the context so unauthenticated calls fail closed.
2882 if _, ok := ActorFromContext(ctx); !ok {
2883 return false, ErrNoActor
2884 }
2885 return q.db.GetChatDebugLoggingAllowUsers(ctx)
2886}
2887
2888func (q *querier) GetChatDebugRetentionDays(ctx context.Context, defaultDebugRetentionDays int32) (int32, error) {
2889 // Chat debug retention is a deployment-wide config read by dbpurge.

Callers

nothing calls this directly

Calls 2

ActorFromContextFunction · 0.70

Tested by

no test coverage detected