ECMS-4304 [SANITIZATION] fix the bug when remove all permission and remove Add Any permission