pub async fn end_elevation(
pool: &PgPool,
actor: &Actor,
project_id: Uuid,
) -> AppResult<()>Expand description
Ends the actor’s running elevation of a group early.
§Invariants
- Permission: administrators only (403); nothing running is “not found”.
- Locks: the elevation rows of the actor and group (
FOR UPDATE). - Data: sets
ended_at; the row stays in the history. - Audit:
project.elevation_end. - Notifications / webhooks: none.
- Atomic: one transaction.