Fix/4.0.x/ecms 5682

    Problem analysis:
      - the function nodeIterator.getSize() does not take the permission into account
    
    Fix description:
      - navigate throw the iterator to get the real number of items