mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Fix registration openess condition mistake
This commit is contained in:
parent
5d58b31f1c
commit
9bbfc71fc8
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue