From 7aa5c43c5a9fd065634fde67fe79ea1678dd1f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 11 Jul 2025 10:56:57 +0200 Subject: [PATCH] poprawki w autoryzacji --- app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index 8d498d4..827a2d5 100644 --- a/app.py +++ b/app.py @@ -253,6 +253,11 @@ def inject_has_authorized_cookie(): @app.before_request def require_system_password(): + + ip = request.access_route[0] + if is_ip_blocked(ip): + abort(403) + if request.endpoint is None: return