[BACKLOG-1562] Add support for ACL shadow nodes in repository - bug fix ...

...and a corresponding test


@pentaho-nbaker, review it please. This fixes a bug and introduces a related test case