From db9f9a831d0c1eb694a0bbac07966a0acd270f5e Mon Sep 17 00:00:00 2001 From: Sujan Adhikari <109404840+Sujanadh@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:27:46 +0545 Subject: [PATCH] fix: role mapper to login required in data extract (#1450) Co-authored-by: sujanadh --- src/backend/app/projects/project_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 16cb20e33f..def50ca06e 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -767,7 +767,7 @@ async def get_data_extract( geojson_file: UploadFile = File(...), form_category: Optional[str] = Form(None), # config_file: Optional[str] = Form(None), - current_user: AuthUser = Depends(mapper), + current_user: AuthUser = Depends(login_required), ): """Get a new data extract for a given project AOI.