From 50f89c48e27d0d6d5aecac22d491e53e130a0bba Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 15:07:18 +0200 Subject: [PATCH] Dashboard url: fix getting dashboard url. --- etebase_fastapi/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_fastapi/authentication.py b/etebase_fastapi/authentication.py index 2f8395e..04aec31 100644 --- a/etebase_fastapi/authentication.py +++ b/etebase_fastapi/authentication.py @@ -263,7 +263,7 @@ async def change_password(data: ChangePassword, request: Request, user: User = D @authentication_router.post("/dashboard_url/", responses=permission_responses) -def dashboard_url(user: User = Depends(get_authenticated_user)): +def dashboard_url(request: Request, user: User = Depends(get_authenticated_user)): get_dashboard_url = app_settings.DASHBOARD_URL_FUNC if get_dashboard_url is None: raise HttpError("not_supported", "This server doesn't have a user dashboard.")