From 7060c1d41763c367c2108b5a71ca0af72654c1c4 Mon Sep 17 00:00:00 2001 From: Mark Murnane Date: Thu, 17 Oct 2024 17:28:51 -0400 Subject: [PATCH] Reverting admin retrieval --- uber/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uber/decorators.py b/uber/decorators.py index 32872518a..feac6e933 100644 --- a/uber/decorators.py +++ b/uber/decorators.py @@ -53,7 +53,7 @@ def log_pageview(func): def with_check(*args, **kwargs): with uber.models.Session() as session: try: - session.current_admin_account() + session.admin_account(cherrypy.session.get('account_id')) except Exception: pass # no tracking for non-admins yet else: