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

This commit is contained in:
Bjoern Schiessle 2012-06-04 18:03:16 +02:00
parent f291a843bf
commit c6a1d9491b
1 changed files with 4 additions and 2 deletions

View File

@ -118,8 +118,10 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
*/ */
public function delete() { public function delete() {
foreach($this->getChildren() as $child) $child->delete(); if ($this->path != "/Shared") {
OC_Filesystem::rmdir($this->path); foreach($this->getChildren() as $child) $child->delete();
OC_Filesystem::rmdir($this->path);
}
} }