1
0
mirror of https://github.com/etesync/server synced 2024-12-01 13:08:10 +00:00

Dashboard url: fix getting dashboard url.

This commit is contained in:
Tom Hacohen 2020-12-28 15:07:18 +02:00
parent c1f171bde0
commit 50f89c48e2

View File

@ -263,7 +263,7 @@ async def change_password(data: ChangePassword, request: Request, user: User = D
@authentication_router.post("/dashboard_url/", responses=permission_responses) @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 get_dashboard_url = app_settings.DASHBOARD_URL_FUNC
if get_dashboard_url is None: if get_dashboard_url is None:
raise HttpError("not_supported", "This server doesn't have a user dashboard.") raise HttpError("not_supported", "This server doesn't have a user dashboard.")