title: Upgrading dotcms 2.5.7 to 3.7.2 $folder = $fileRepository_filesList.get(0).folder - won't return folder id
body: <p>I upgraded dotcms from 2.5.7 to 3.7.2.</p>
  <p>The following code is actually linked to a button which opens a slideshow.</p>
  <p>This code was working in old cms, but won't in the 3.7.2
  Funny thing! - If I am not logged in in the backend this code works otherwise it won't.</p>
  <p>To view the button for slideshow itself you need to be logged in, but not in the backend!
  What am I missing guys?</p>
  <p>How should I get list of files from folder which have 4 children (folders in it), that contains pictures and then I could use it with JavaScript?</p>
  <p><code>#set($folder = $fileRepository_filesList.get(0).folder)</code>  - this line should return id of the folder, but does not return anything (it's just $folder). If I'm logged in the backend this line returns <code>id(61763395-ca41-4446-95cc-4ddfbaaf0cea)</code>. Why?</p>
  <p>Thank you so much for the help!</p>