diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-10 09:54:29 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:25 +0200 |
commit | 33cdd938904d92607db56c1f3993b74b14ce9bf3 (patch) | |
tree | 0c2d7508b0e4f9c5ed938781ff3287afca9d13d0 | |
parent | bfabd247f42f306720d154c3a84285afed589033 (diff) | |
download | nextcloud-server-33cdd938904d92607db56c1f3993b74b14ce9bf3.tar.gz nextcloud-server-33cdd938904d92607db56c1f3993b74b14ce9bf3.zip |
fix deleting of shared files
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 39d01400089..3a31e965548 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -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); |