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:50:02 +0100 |
commit | 969650ecad6d9aadfc949b37730158066f5a3d8c (patch) | |
tree | 716bdec6dbe578ed5c03125f22b9f3e7ea127136 | |
parent | 48cd4adfb48a180e6bc869e3ffff5391ff33883b (diff) | |
download | nextcloud-server-969650ecad6d9aadfc949b37730158066f5a3d8c.tar.gz nextcloud-server-969650ecad6d9aadfc949b37730158066f5a3d8c.zip |
don't unshare on delete
-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 363c314f523..0e3090a9a1e 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -277,14 +277,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; |