]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not check storage availability for getOwner
authorVincent Petry <pvince81@owncloud.com>
Wed, 9 Dec 2015 16:31:14 +0000 (17:31 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 9 Dec 2015 16:31:14 +0000 (17:31 +0100)
Because the owner is always known thanks to the file cache and other
places, we don't need the remote storage to be actually available.

lib/private/files/storage/wrapper/availability.php

index d6ce78f6e448e44a31f25ffd003effcf040832a7..d2fbbbacf75678aaca66ef04b711094b8aad2f15 100644 (file)
@@ -399,7 +399,6 @@ class Availability extends Wrapper {
 
        /** {@inheritdoc} */
        public function getOwner($path) {
-               $this->checkAvailability();
                try {
                        return parent::getOwner($path);
                } catch (\OCP\Files\StorageNotAvailableException $e) {