FIXED: Previous issue where logged in users could not access files to
which they didn't have permissions even when they were published and
public. The same code was used in determining if the user should be
allowed to download a file.