From b3c170e10d6581af2c64f9451ca7ff35e5409cd0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 14:28:42 +0200 Subject: [PATCH] fix getting dashboard URL. --- etebase_fastapi/authentication.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etebase_fastapi/authentication.py b/etebase_fastapi/authentication.py index 1c262c8..2f8395e 100644 --- a/etebase_fastapi/authentication.py +++ b/etebase_fastapi/authentication.py @@ -264,13 +264,12 @@ 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)): - # XXX-TOM 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.") ret = { - "url": get_dashboard_url(request, *args, **kwargs), + "url": get_dashboard_url(CallbackContext(request.path_params, user=user)), } return ret