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

Method GetChatACLByID

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

Source from the content-addressed store, hash-verified

2788}
2789
2790func (q *querier) GetChatACLByID(ctx context.Context, id uuid.UUID) (database.GetChatACLByIDRow, error) {
2791 chat, err := q.db.GetChatByID(ctx, id)
2792 if err != nil {
2793 return database.GetChatACLByIDRow{}, err
2794 }
2795 if err := q.authorizeContext(ctx, policy.ActionRead, chat); err != nil {
2796 return database.GetChatACLByIDRow{}, err
2797 }
2798 return q.db.GetChatACLByID(ctx, id)
2799}
2800
2801func (q *querier) GetChatAdvisorConfig(ctx context.Context) (string, error) {
2802 // The advisor configuration is a deployment-wide setting read by any

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65
GetChatACLByIDMethod · 0.65

Tested by

no test coverage detected