mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 01:55:56 -04:00
don't allow user to delete Shared dir via webdav and sync client (bug #774)
This commit is contained in:
parent
7fbe306990
commit
ca64a4080f
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue