Fix registration openess condition mistake
This commit is contained in:
parent
5d58b31f1c
commit
9bbfc71fc8
@ -71,11 +71,11 @@ pub fn create(
|
|||||||
rockets: PlumeRocket,
|
rockets: PlumeRocket,
|
||||||
_enabled: signups::Email,
|
_enabled: signups::Email,
|
||||||
) -> Result<RespondOrRedirect, Ructe> {
|
) -> Result<RespondOrRedirect, Ructe> {
|
||||||
let registration_open = !Instance::get_local()
|
let registration_open = Instance::get_local()
|
||||||
.map(|i| i.open_registrations)
|
.map(|i| i.open_registrations)
|
||||||
.unwrap_or(true);
|
.unwrap_or(true);
|
||||||
|
|
||||||
if registration_open {
|
if !registration_open {
|
||||||
return Ok(Flash::error(
|
return Ok(Flash::error(
|
||||||
Redirect::to(uri!(super::user::new)),
|
Redirect::to(uri!(super::user::new)),
|
||||||
i18n!(
|
i18n!(
|
||||||
|
Loading…
Reference in New Issue
Block a user