KRACOEUS-7747: fixing conditional rendering of perm elements