KRACOEUS-8534: added logic to check for permissions on child before addi...

...ng to hierarchy in parent