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

Method DeleteAllWebpushSubscriptions

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

Source from the content-addressed store, hash-verified

1943}
1944
1945func (q *querier) DeleteAllWebpushSubscriptions(ctx context.Context) error {
1946 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceWebpushSubscription); err != nil {
1947 return err
1948 }
1949 return q.db.DeleteAllWebpushSubscriptions(ctx)
1950}
1951
1952func (q *querier) DeleteApplicationConnectAPIKeysByUserID(ctx context.Context, userID uuid.UUID) error {
1953 // TODO: This is not 100% correct because it omits apikey IDs.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected