Commit 1ef01de4 authored by Robin Appelman's avatar Robin Appelman
Browse files

Merge pull request #12907 from owncloud/delete-invalid-external-share

Fix deleting invalid s2s shares
parents 10a0fc28 e656af4c
......@@ -167,6 +167,14 @@ class Storage extends DAV implements ISharedStorage {
}
}
public function file_exists($path) {
if ($path === '') {
return true;
} else {
return parent::file_exists($path);
}
}
/**
* check if the configured remote is a valid ownCloud instance
*
......
......@@ -280,6 +280,11 @@ class View {
}
public function isDeletable($path) {
$absolutePath = $this->getAbsolutePath($path);
$mount = Filesystem::getMountManager()->find($absolutePath);
if ($mount->getInternalPath($absolutePath) === '') {
return $mount instanceof MoveableMount;
}
return $this->basicOperation('isDeletable', $path);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment