Merge pull request #5232 from owncloud/fixing-webdav-touch-master

due to internal implementations touch will always be successful - $mtime...
This commit is contained in:
Frank Karlitschek 2013-10-10 01:49:59 -07:00
commit 1a899ac4c3
1 changed files with 0 additions and 6 deletions

View 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. * 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);
} }