From 747698b72dfb851bfef8fd8e132721145c972deb Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 14 Mar 2023 17:09:12 +0100 Subject: [PATCH] fix --- src/rest/restreg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/restreg.rs b/src/rest/restreg.rs index 5f80ae2..fa3fa76 100644 --- a/src/rest/restreg.rs +++ b/src/rest/restreg.rs @@ -30,7 +30,7 @@ async fn register( .unwrap() .expect("There's no trip on this date (yet)"); - if !(day.open_registration || user.is_cox) { + if register.cox_id.is_none() && !day.open_registration { log::error!("{} tried to register, even though the user it should not be possible to do so via UI -> manually crafted request?", user.name); return Flash::error( Redirect::to("/"),