if share-permissions exists we use this information as indicator to check if the file has changed or not
This commit is contained in:
parent
e906796f99
commit
2edbb7d4bd
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue