mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix deleting of shared files
This commit is contained in:
parent
bfabd247f4
commit
33cdd93890
1 changed files with 3 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ class Shared extends \OC\Files\Storage\Common {
|
|||
|
||||
public function unlink($path) {
|
||||
// Delete the file if DELETE permission is granted
|
||||
if ($path == '') {
|
||||
$path = $this->mountPoint;
|
||||
}
|
||||
if ($source = $this->getSourcePath($path)) {
|
||||
if ($this->isDeletable($path)) {
|
||||
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
|
||||
|
|
|
|||
Loading…
Reference in a new issue