From 1a173964fe421932057473c98758e289727f3c90 Mon Sep 17 00:00:00 2001 From: swve Date: Mon, 24 Apr 2023 20:47:19 +0200 Subject: [PATCH] fix: org deletion bug --- src/services/courses/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/courses/collections.py b/src/services/courses/collections.py index 387d910d..817f5e54 100644 --- a/src/services/courses/collections.py +++ b/src/services/courses/collections.py @@ -156,7 +156,7 @@ async def verify_collection_rights(request: Request,collection_id: str, current raise HTTPException( status_code=status.HTTP_409_CONFLICT, detail="Collection does not exist") - hasRoleRights = await verify_user_rights_with_roles(request, action, current_user.user_id, collection_id) + hasRoleRights = await verify_user_rights_with_roles(request, action, current_user.user_id, collection_id, collection["org_id"]) if not hasRoleRights: raise HTTPException(