diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-13 15:25:59 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-13 16:49:16 +0100 |
commit | d1b47021f172d4409fbd818ba2e2dbcc7d511e13 (patch) | |
tree | 758a345e16553ea3bc898e55bb3646cf46c5fe4e /apps/files_sharing/lib/sharedstorage.php | |
parent | 5e04b7f2841a815ddec19d65f3ff7166a333e6fd (diff) | |
download | nextcloud-server-d1b47021f172d4409fbd818ba2e2dbcc7d511e13.tar.gz nextcloud-server-d1b47021f172d4409fbd818ba2e2dbcc7d511e13.zip |
don't unshare on delete
Diffstat (limited to 'apps/files_sharing/lib/sharedstorage.php')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 6b4db9763f5..afe5dffdebd 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -279,14 +279,6 @@ class Shared extends \OC\Files\Storage\Common { if ($this->isDeletable($path)) { list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); return $storage->unlink($internalPath); - } else if (dirname($path) == '/' || dirname($path) == '.') { - // Unshare the file from the user if in the root of the Shared folder - if ($this->is_dir($path)) { - $itemType = 'folder'; - } else { - $itemType = 'file'; - } - return \OCP\Share::unshareFromSelf($itemType, $path); } } return false; |