(ctx context.Context)
| 1840 | } |
| 1841 | |
| 1842 | func (q *querier) CountEnabledModelsWithoutPricing(ctx context.Context) (int64, error) { |
| 1843 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 1844 | return 0, err |
| 1845 | } |
| 1846 | return q.db.CountEnabledModelsWithoutPricing(ctx) |
| 1847 | } |
| 1848 | |
| 1849 | func (q *querier) CountInProgressPrebuilds(ctx context.Context) ([]database.CountInProgressPrebuildsRow, error) { |
| 1850 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceWorkspace.All()); err != nil { |
nothing calls this directly
no test coverage detected