forked from Ruderverein-Donau-Linz/rowt
		
	allow cox to create events on no open days
This commit is contained in:
		@@ -30,7 +30,7 @@ async fn register(
 | 
			
		||||
        .unwrap()
 | 
			
		||||
        .expect("There's no trip on this date (yet)");
 | 
			
		||||
 | 
			
		||||
    if register.cox_id.is_none() && !day.open_registration {
 | 
			
		||||
    if register.cox_id.is_none() && !day.open_registration && register.time.is_none() {
 | 
			
		||||
        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("/"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user