]> source.dussan.org Git - nextcloud-server.git/commitdiff
due to internal implementations touch will always be successful - $mtime will be...
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 9 Oct 2013 13:35:09 +0000 (15:35 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 9 Oct 2013 13:35:09 +0000 (15:35 +0200)
from desktop client perspective it is necessary to set the mtime under every condition

lib/private/connector/sabre/node.php

index fa27abb381ab48297b65dcaae36a33537afdad14..c38e9f86375f1f8be7c2052111d751f9187582be 100644 (file)
@@ -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);
        }