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

Method CountPendingNonActivePrebuilds

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

Source from the content-addressed store, hash-verified

1862}
1863
1864func (q *querier) CountPendingNonActivePrebuilds(ctx context.Context) ([]database.CountPendingNonActivePrebuildsRow, error) {
1865 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceWorkspace.All()); err != nil {
1866 return nil, err
1867 }
1868 return q.db.CountPendingNonActivePrebuilds(ctx)
1869}
1870
1871func (q *querier) CountUnreadInboxNotificationsByUserID(ctx context.Context, userID uuid.UUID) (int64, error) {
1872 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceInboxNotification.WithOwner(userID.String())); err != nil {

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
AllMethod · 0.80

Tested by

no test coverage detected