Skip to content
Snippets Groups Projects
Commit 27738fc4 authored by Thomas Müller's avatar Thomas Müller
Browse files

due to internal implementations touch will always be successful - $mtime will...

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
parent 45510f2f
No related branches found
No related tags found
No related merge requests found
...@@ -147,12 +147,6 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr ...@@ -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. * Even if the modification time is set to a custom value the access time is set to now.
*/ */
public function touch($mtime) { 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); \OC\Files\Filesystem::touch($this->path, $mtime);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment