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

Method DeleteWebpushSubscriptions

coderd/database/dbauthz/dbauthz.go:2368–2373  ·  view source on GitHub ↗
(ctx context.Context, ids []uuid.UUID)

Source from the content-addressed store, hash-verified

2366}
2367
2368func (q *querier) DeleteWebpushSubscriptions(ctx context.Context, ids []uuid.UUID) error {
2369 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {
2370 return err
2371 }
2372 return q.db.DeleteWebpushSubscriptions(ctx, ids)
2373}
2374
2375func (q *querier) DeleteWorkspaceACLByID(ctx context.Context, id uuid.UUID) error {
2376 fetch := func(ctx context.Context, id uuid.UUID) (database.WorkspaceTable, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected