forked from Ruderverein-Donau-Linz/rowt
fix
This commit is contained in:
parent
38d8197a48
commit
747698b72d
@ -30,7 +30,7 @@ async fn register(
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.expect("There's no trip on this date (yet)");
|
.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);
|
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(
|
return Flash::error(
|
||||||
Redirect::to("/"),
|
Redirect::to("/"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user