From 33cdd938904d92607db56c1f3993b74b14ce9bf3 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 10 Apr 2014 09:54:29 +0200 Subject: fix deleting of shared files --- apps/files_sharing/lib/sharedstorage.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/files_sharing/lib/sharedstorage.php') 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); -- cgit v1.2.3