SONAR-2447 Improve permission check for transition