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

Method CountEnabledModelsWithoutPricing

coderd/database/dbauthz/dbauthz.go:1842–1847  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1840}
1841
1842func (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
1849func (q *querier) CountInProgressPrebuilds(ctx context.Context) ([]database.CountInProgressPrebuildsRow, error) {
1850 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceWorkspace.All()); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected