From 633027acd2e1ae9e84d7b36efd01e414b39c4da8 Mon Sep 17 00:00:00 2001 From: Avior Date: Wed, 28 Jun 2023 19:24:58 +0200 Subject: [PATCH] fix: permission not correctly selected Signed-off-by: Avior --- src/middleware/apiAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/apiAuth.ts b/src/middleware/apiAuth.ts index 5656f5c..89c3ad7 100644 --- a/src/middleware/apiAuth.ts +++ b/src/middleware/apiAuth.ts @@ -26,7 +26,7 @@ function objectFind(obj: object, fn: (value: any, key: any) => boolean): {key: s key, value } } - return tmp + return !tmp }) return res }