Skip to main content

remove_reviewer

Function remove_reviewer 

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

Removes a reviewer from a draft change.

ยงInvariants

  • Permission: CAD editor who is the author (or an administrator); the change is a draft (409); the user is a reviewer of it (404 otherwise).
  • Locks: the change row (FOR UPDATE).
  • Audit: change.remove_reviewer.
  • Notifications / webhooks: none.
  • Atomic: one transaction.