Forward the lab 4 foundation and migrate the lab 5 pipeline to SQLAlchemy
This commit is contained in:
@@ -9,7 +9,7 @@ from messenger.shared.entrypoints.errors import Unauthenticated
|
||||
async def current_actor(request: Request) -> UUID:
|
||||
actor = getattr(request.state, "actor", None)
|
||||
if not isinstance(actor, UUID):
|
||||
raise Unauthenticated("заголовок идентификации обязателен и должен быть действительным")
|
||||
raise Unauthenticated("сессия не подтверждена")
|
||||
return actor
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user