]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow disabling previews per mount
authorRobin Appelman <icewind@owncloud.com>
Tue, 16 Dec 2014 13:34:10 +0000 (14:34 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 17 Dec 2014 13:03:50 +0000 (14:03 +0100)
lib/private/preview.php

index 7305bf1cc0eb782c5e3c055504593a0d2d2c46b0..a586c94fd11c59ebe6bb77c18a10290b2aa58cc7 100644 (file)
@@ -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();