Made DBPermissionManager.isOwnedByUs() work properly for multiple levels of object embedding