(ctx context.Context)
| 2876 | } |
| 2877 | |
| 2878 | func (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 | |
| 2888 | func (q *querier) GetChatDebugRetentionDays(ctx context.Context, defaultDebugRetentionDays int32) (int32, error) { |
| 2889 | // Chat debug retention is a deployment-wide config read by dbpurge. |
nothing calls this directly
no test coverage detected