fix: correct session uid access from self.request to request in app.py
The session uid retrieval in the Application class was incorrectly referencing self.request.session instead of the local request variable, causing potential AttributeError when accessing user static paths.
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ class Application(BaseApplication):
|
|||||||
paths = []
|
paths = []
|
||||||
|
|
||||||
|
|
||||||
uid = self.request.session.get("uid")
|
uid = request.session.get("uid")
|
||||||
if uid:
|
if uid:
|
||||||
user_static_path = await self.services.user.get_static_path(uid)
|
user_static_path = await self.services.user.get_static_path(uid)
|
||||||
if user_static_path:
|
if user_static_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user