From 46fbbee4597f3690f8a8ee129f5108d5aa59ba95 Mon Sep 17 00:00:00 2001 From: blek Date: Wed, 13 Dec 2023 00:55:39 +1000 Subject: [PATCH] fix stupid mistakes in config checks --- filed/src/web/api/files/delete.rs | 2 +- filed/src/web/api/files/get_all.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filed/src/web/api/files/delete.rs b/filed/src/web/api/files/delete.rs index b5d5603..b585d4e 100644 --- a/filed/src/web/api/files/delete.rs +++ b/filed/src/web/api/files/delete.rs @@ -17,7 +17,7 @@ pub async fn delete(state: SharedState, body: DeleteFunctionPayload) -> Result Result, Rejection> { return Ok(Box::new(res)) } - if ! state.config.api.get_all { + if (!state.config.api.get_all) || (!state.config.api.enabled) { return Ok(Box::new(function_disabled_err())) }