From 9bbfc71fc8eaa1776f075c21c92782f206201bc2 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 12 Jan 2022 09:19:48 +0900 Subject: [PATCH] Fix registration openess condition mistake --- src/routes/email_signups.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/email_signups.rs b/src/routes/email_signups.rs index a9994801..fc868ead 100644 --- a/src/routes/email_signups.rs +++ b/src/routes/email_signups.rs @@ -71,11 +71,11 @@ pub fn create( rockets: PlumeRocket, _enabled: signups::Email, ) -> Result { - let registration_open = !Instance::get_local() + let registration_open = Instance::get_local() .map(|i| i.open_registrations) .unwrap_or(true); - if registration_open { + if !registration_open { return Ok(Flash::error( Redirect::to(uri!(super::user::new)), i18n!(