From 7bd620e1107d8adf30b8e657102399a765bf9439 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Mon, 27 May 2024 15:49:10 -0500 Subject: [PATCH] stuff --- src/router/webui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/webui.rs b/src/router/webui.rs index 7d3c723..b532760 100644 --- a/src/router/webui.rs +++ b/src/router/webui.rs @@ -75,7 +75,7 @@ pub fn login(_req: HttpRequest, body: String) -> HttpResponse { } pub fn import(_req: HttpRequest, body: String) -> HttpResponse { - if get_config()["import"].as_bool().unwrap() == false { + if !get_config()["import"].as_bool().unwrap() { return error("Importing accounts is disabled on this server."); } let body = json::parse(&body).unwrap(); @@ -222,7 +222,7 @@ pub fn admin_post(req: HttpRequest, body: String) -> HttpResponse { } pub fn export(req: HttpRequest) -> HttpResponse { - if get_config()["export"].as_bool().unwrap() == false { + if !get_config()["export"].as_bool().unwrap() { return error("Exporting accounts is disabled on this server."); } let token = get_login_token(&req);