(ctx context.Context, id uuid.UUID)
| 2788 | } |
| 2789 | |
| 2790 | func (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 | |
| 2801 | func (q *querier) GetChatAdvisorConfig(ctx context.Context) (string, error) { |
| 2802 | // The advisor configuration is a deployment-wide setting read by any |
nothing calls this directly
no test coverage detected