summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-10-10 01:49:59 -0700
committerFrank Karlitschek <frank@owncloud.org>2013-10-10 01:49:59 -0700
commit1a899ac4c3370d34d76eac542cd5404ef2d48b8c (patch)
tree5f9a18a62ecd83c109c59c717c518d6bab5ae9f7 /lib
parentec4fd354682f41899013f037308b728493022ee4 (diff)
parent27738fc4f5c80d5aaf0f1af6bd8bff99872d0c70 (diff)
downloadnextcloud-server-1a899ac4c3370d34d76eac542cd5404ef2d48b8c.tar.gz
nextcloud-server-1a899ac4c3370d34d76eac542cd5404ef2d48b8c.zip
Merge pull request #5232 from owncloud/fixing-webdav-touch-master
due to internal implementations touch will always be successful - $mtime...
Diffstat (limited to 'lib')
-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);
}