Skip to main content

remove

Function remove 

Source
pub async fn remove(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
) -> AppResult<ItemReference>
Expand description

Removes a reference from a revision that is checked out by the actor.

§Invariants

  • Permission: the reference’s revision is visible to the actor (“not found” otherwise), checked out by the actor (409 otherwise) and editable (revisions::ensure_editable: in work, CAD editor of its group).
  • Locks: the revision row (revisions::lock).
  • Audit: reference.remove.
  • Notifications / webhooks: none.
  • Atomic: one transaction.