diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-04-15 10:52:53 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-04-20 17:47:33 +0200 |
commit | 2edbb7d4bd65db3aae4c2243da58c987087d32a8 (patch) | |
tree | 982c6f8ca1dbeb5d60dbcda3082349d682c3e97a | |
parent | e906796f99eaaea26cfbb3055ccc27024470b410 (diff) | |
download | nextcloud-server-2edbb7d4bd65db3aae4c2243da58c987087d32a8.tar.gz nextcloud-server-2edbb7d4bd65db3aae4c2243da58c987087d32a8.zip |
if share-permissions exists we use this information as indicator to check if the file has changed or not
-rw-r--r-- | lib/private/files/storage/dav.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index a5555372250..8eebea1f3ba 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -742,6 +742,9 @@ class DAV extends Common { } if (!empty($etag) && $cachedData['etag'] !== $etag) { return true; + } else if (isset($response['{http://open-collaboration-services.org/ns}share-permissions'])) { + $sharePermissions = (int)$response['{http://open-collaboration-services.org/ns}share-permissions']; + return $sharePermissions !== $cachedData['permissions']; } else if (isset($response['{http://owncloud.org/ns}permissions'])) { $permissions = $this->parsePermissions($response['{http://owncloud.org/ns}permissions']); return $permissions !== $cachedData['permissions']; |