fix: org deletion bug

This commit is contained in:
swve 2023-04-24 20:47:19 +02:00
parent 394f4e0b5a
commit 1a173964fe

View file

@ -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(