We should not attempt to open the pdf viewer for files that have download disabled as it fails to download the file from webdav Ref https://github.com/nextcloud/server/pull/32482#issuecomment-1218387463