mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
only enable previews if the encryption is disabled
This commit is contained in:
parent
eab844e226
commit
abad625cac
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue