diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-09 10:43:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 10:43:37 +0200 |
commit | d8dea5070b452a972f632555ddc469ebd42a4ebe (patch) | |
tree | e02638f8d3d221888661ef628a9adc852a1d2581 /lib | |
parent | 0485e68ecfd560be11b4aa7ce95a3379c080844f (diff) | |
parent | 9fdeed8cc063874bd46598e3134d9f90b9cbd7aa (diff) | |
download | nextcloud-server-d8dea5070b452a972f632555ddc469ebd42a4ebe.tar.gz nextcloud-server-d8dea5070b452a972f632555ddc469ebd42a4ebe.zip |
Merge pull request #22729 from nextcloud/fix/object_storage_permissions_shortcut
Run stat less often for objectstorages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index faa0342935e..950840301b0 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -227,6 +227,16 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { } } + public function getPermissions($path) { + $stat = $this->stat($path); + + if (is_array($stat) && isset($stat['permissions'])) { + return $stat['permissions']; + } + + return parent::getPermissions($path); + } + /** * Override this method if you need a different unique resource identifier for your object storage implementation. * The default implementations just appends the fileId to 'urn:oid:'. Make sure the URN is unique over all users. |