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.removeon the revision.