This commit is contained in:
Untone 2023-11-28 23:08:22 +03:00
parent 68fce283bc
commit 8a824d3d23

View File

@ -44,7 +44,7 @@ def login_required(f):
if not is_authenticated:
raise Exception("You are not logged in")
else:
# Добавляем author_id в контекст
# Добавляем author_id и user_id в контекст
with local_session() as session:
author = session.query(Author).filter(Author.user == user_id).first()
if author: