KRACOEUS-8534: added logic to check for permissions on child before adding to hierarchy in parent