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

Method GetUserChatDebugLoggingEnabled

coderd/database/dbauthz/dbauthz.go:4641–4650  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

4639}
4640
4641func (q *querier) GetUserChatDebugLoggingEnabled(ctx context.Context, userID uuid.UUID) (bool, error) {
4642 u, err := q.db.GetUserByID(ctx, userID)
4643 if err != nil {
4644 return false, err
4645 }
4646 if err := q.authorizeContext(ctx, policy.ActionReadPersonal, u); err != nil {
4647 return false, err
4648 }
4649 return q.db.GetUserChatDebugLoggingEnabled(ctx, userID)
4650}
4651
4652func (q *querier) GetUserChatPersonalModelOverride(ctx context.Context, arg database.GetUserChatPersonalModelOverrideParams) (string, error) {
4653 u, err := q.db.GetUserByID(ctx, arg.UserID)

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetUserByIDMethod · 0.65

Tested by

no test coverage detected