This commit is contained in:
parent
c90e68d3ae
commit
2658cd323b
|
@ -60,6 +60,8 @@ def login_required(f):
|
|||
user_id = await check_auth(req)
|
||||
if user_id:
|
||||
context["user_id"] = user_id
|
||||
if not cached_authors:
|
||||
get_all_authors()
|
||||
authors_by_user, authors_by_id = cached_authors
|
||||
author = authors_by_user.get(user_id)
|
||||
if author and "id" in author:
|
||||
|
|
Loading…
Reference in New Issue
Block a user