ECMS-5044 Correct behavior of edit permission of category tree