Skip to content
Snippets Groups Projects
Commit ca64a408 authored by Björn Schießle's avatar Björn Schießle
Browse files

don't allow user to delete Shared dir via webdav and sync client (bug #774)

parent 7fbe3069
No related branches found
No related tags found
No related merge requests found
...@@ -118,8 +118,10 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa ...@@ -118,8 +118,10 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
*/ */
public function delete() { public function delete() {
if ($this->path != "/Shared") {
foreach($this->getChildren() as $child) $child->delete(); foreach($this->getChildren() as $child) $child->delete();
OC_Filesystem::rmdir($this->path); OC_Filesystem::rmdir($this->path);
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment