From 251105494708c704f4cbfda1015718451d87a157 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Jan 2023 06:34:32 +0200 Subject: [PATCH] fix leak of admin chat --- files/routes/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 3cd23a841..2aa3d9da7 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -125,7 +125,7 @@ def speak(data, v): admin_ids = [x[0] for x in g.db.query(User.id).filter( User.id != v.id, - User.admin_level >= PERMS['CHAT'], + User.admin_level >= 1, ).all()] push_notif(admin_ids, title, notifbody, url)