Skip to main content

decide

Function decide 

Source
pub async fn decide(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
    decision: RequestDecision,
    comment: &str,
) -> AppResult<ChangeRequest>
Expand description

Accepts, rejects or defers a request. Rejecting and deferring need a reason. In a group whose review policy has requester_cannot_decide, the requester may not decide (403) – an administrator neither.