]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't unshare on delete
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 13 Jan 2014 14:25:59 +0000 (15:25 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 13 Jan 2014 15:50:02 +0000 (16:50 +0100)
apps/files_sharing/lib/sharedstorage.php

index 363c314f5231b334fcd8d2702df50c0d1e885296..0e3090a9a1e04f5c12ed4d7a4179bf7dadeb3d64 100644 (file)
@@ -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;