SONAR-5566 Fix issue when updating a lot of permissions