mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Allow disabling previews per mount
This commit is contained in:
parent
fd85424742
commit
2eab0f2121
1 changed files with 5 additions and 0 deletions
|
|
@ -922,6 +922,11 @@ class Preview {
|
|||
return false;
|
||||
}
|
||||
|
||||
$mount = $file->getMountPoint();
|
||||
if ($mount and !$mount->getOption('previews', true)){
|
||||
return false;
|
||||
}
|
||||
|
||||
//check if there are preview backends
|
||||
if (empty(self::$providers)) {
|
||||
self::initProviders();
|
||||
|
|
|
|||
Loading…
Reference in a new issue