summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-04 18:03:16 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-04 18:08:51 +0200
commitca64a4080f48c0656c0be7aadd6fe91d43e40f83 (patch)
treeac28f25bb14e138b22dc21dac83ac6e26a3f75a8 /lib/connector
parent7fbe306990ce8afd89d5ac7cc1a921c0adda887a (diff)
downloadnextcloud-server-ca64a4080f48c0656c0be7aadd6fe91d43e40f83.tar.gz
nextcloud-server-ca64a4080f48c0656c0be7aadd6fe91d43e40f83.zip
don't allow user to delete Shared dir via webdav and sync client (bug #774)
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/directory.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php
index 935d3b0abe4..e74d832cb00 100644
--- a/lib/connector/sabre/directory.php
+++ b/lib/connector/sabre/directory.php
@@ -118,8 +118,10 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
*/
public function delete() {
- foreach($this->getChildren() as $child) $child->delete();
- OC_Filesystem::rmdir($this->path);
+ if ($this->path != "/Shared") {
+ foreach($this->getChildren() as $child) $child->delete();
+ OC_Filesystem::rmdir($this->path);
+ }
}