diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-25 21:28:39 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-03-10 15:13:28 +0100 |
commit | abad625cac2ef0417996f196f522ef006836940d (patch) | |
tree | a20669c46df0550d99e8c96ace162d6c3dd9379b /apps | |
parent | eab844e2267a2955711f9d426c47eedeeea2d479 (diff) | |
download | nextcloud-server-abad625cac2ef0417996f196f522ef006836940d.tar.gz nextcloud-server-abad625cac2ef0417996f196f522ef006836940d.zip |
only enable previews if the encryption is disabled
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/lib/helper.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index f1cec6cc94e..4bb51860485 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -70,7 +70,11 @@ class Helper $i['directory'] = ''; } $i['permissions'] = \OCP\PERMISSION_READ; - $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($r['mime']); + if (\OCP\App::isEnabled('files_encryption')) { + $i['isPreviewAvailable'] = false; + } else { + $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($r['mime']); + } $i['icon'] = \OCA\Files\Helper::determineIcon($i); $files[] = $i; } |