pub async fn clear_supersession(
pool: &PgPool,
actor: &Actor,
item_id: Uuid,
) -> AppResult<()>Expand description
Withdraws the supersession of item_id.
§Invariants
- Permission: the item is visible to the actor (“not found” otherwise); CAD editor and member of its group (403). An item that is not superseded is “not found”.
- Locks: none (a single
DELETE ... RETURNING). - Audit:
item.supersede.clear. - Notifications / webhooks: none.
- Atomic: one transaction.