Rate limiter: fix 81e2a5a for logged-out.

master
Snakes 2022-05-30 23:50:56 -04:00
parent 4ba2098612
commit 5d56e71cc9
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ import user_agents
@limiter.request_filter
def limiter_whitelist_admins():
if not hasattr(g, 'agent') or not g.agent:
return False
if not hasattr(g, 'db') or not g.db:
return False
v = get_logged_in_user()
if not v:
return False