Fixed auth.

This commit is contained in:
retoor 2025-04-13 20:26:02 +02:00
parent 4a770848a6
commit e4b0625799

View File

@ -8,7 +8,7 @@ class BaseView(web.View):
login_required = False
async def _iter(self):
if self.login_required and not self.session.get("logged_in"):
if self.login_required and (not self.session.get("logged_in") or not self.session.get("uid")):
return web.HTTPFound("/")
return await super()._iter()