summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-02-25 21:28:39 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-03-10 15:13:28 +0100
commitabad625cac2ef0417996f196f522ef006836940d (patch)
treea20669c46df0550d99e8c96ace162d6c3dd9379b /apps
parenteab844e2267a2955711f9d426c47eedeeea2d479 (diff)
downloadnextcloud-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.php6
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;
}