Skip to main content

remove

Function remove 

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

Removes a note (its author or an administrator).

§Invariants

  • Permission: the version is readable (“not found” otherwise); the actor wrote the note or is an administrator (403).
  • Audit: annotation.remove on the revision.