Fix issue where a non-admin couldn't download a file he has permission with