(ctx context.Context, includeSystem bool)
| 1622 | } |
| 1623 | |
| 1624 | func (q *querier) AllUserIDs(ctx context.Context, includeSystem bool) ([]uuid.UUID, error) { |
| 1625 | // Although this technically only reads users, only system-related functions |
| 1626 | // should be allowed to call this. |
| 1627 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
| 1628 | return nil, err |
| 1629 | } |
| 1630 | return q.db.AllUserIDs(ctx, includeSystem) |
| 1631 | } |
| 1632 | |
| 1633 | func (q *querier) ArchiveChatByID(ctx context.Context, id uuid.UUID) ([]database.Chat, error) { |
| 1634 | chat, err := q.db.GetChatByID(ctx, id) |
nothing calls this directly
no test coverage detected