Skip to content

Commit 138176d

Browse files
authored
Merge pull request #6819 from hotosm/hotfix/mapping-level
fix: Add missing db connection param in allowed users for mapping on private projects
2 parents 400f364 + c3be4f0 commit 138176d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/services/project_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ async def is_user_permitted_to_map(project_id: int, user_id: int, db: Database):
411411
if project.private and not is_manager_permission:
412412
# Check if user is in allowed user list
413413
is_allowed_user = await ProjectService.is_user_in_the_allowed_list(
414-
project.id, user_id
414+
project.id, user_id, db
415415
)
416416
if is_allowed_user:
417417
return True, "User allowed to map"

0 commit comments

Comments
 (0)