forked from MarseyWorld/MarseyWorld
Rate limiter: fix 81e2a5a for logged-out.
parent
4ba2098612
commit
5d56e71cc9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue