summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-09 15:35:09 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-09 15:35:09 +0200
commit27738fc4f5c80d5aaf0f1af6bd8bff99872d0c70 (patch)
tree49e6d9015217e0cb51068d7fda87645e13c20a1c /lib/private/connector
parent45510f2fe0c393ceee905a5a2227015bf212e6dc (diff)
downloadnextcloud-server-27738fc4f5c80d5aaf0f1af6bd8bff99872d0c70.tar.gz
nextcloud-server-27738fc4f5c80d5aaf0f1af6bd8bff99872d0c70.zip
due to internal implementations touch will always be successful - $mtime will be stored in the cache
from desktop client perspective it is necessary to set the mtime under every condition
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/node.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/private/connector/sabre/node.php b/lib/private/connector/sabre/node.php
index fa27abb381a..c38e9f86375 100644
--- a/lib/private/connector/sabre/node.php
+++ b/lib/private/connector/sabre/node.php
@@ -147,12 +147,6 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
* Even if the modification time is set to a custom value the access time is set to now.
*/
public function touch($mtime) {
-
- // touch is only allowed if the update privilege is granted
- if (!\OC\Files\Filesystem::isUpdatable($this->path)) {
- throw new \Sabre_DAV_Exception_Forbidden();
- }
-
\OC\Files\Filesystem::touch($this->path, $mtime);
}