diff --git a/src/web/terms.rs b/src/web/terms.rs index c98a85b..9c77450 100644 --- a/src/web/terms.rs +++ b/src/web/terms.rs @@ -181,6 +181,7 @@ async fn update_term( let term = service::term::read(&st.db, &TermId::from_key(&id)) .await? .ok_or(AppError::NotFound)?; + service::term::require_writable(&term)?; // Pre-flight only: the range check is re-made inside the UPDATE's own // `WHERE` (the term update in the db layer), so a concurrent move of the // end this PATCH omits cannot slip an inverted range past this snapshot.