Fixed auth.
This commit is contained in:
parent
4a770848a6
commit
e4b0625799
@ -8,7 +8,7 @@ class BaseView(web.View):
|
|||||||
login_required = False
|
login_required = False
|
||||||
|
|
||||||
async def _iter(self):
|
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 web.HTTPFound("/")
|
||||||
return await super()._iter()
|
return await super()._iter()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user