[Pkg-owncloud-commits] [owncloud] 05/66: don't unshare on delete
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 22:49:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.
commit 969650ecad6d9aadfc949b37730158066f5a3d8c
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Mon Jan 13 15:25:59 2014 +0100
don't unshare on delete
---
apps/files_sharing/lib/sharedstorage.php | 8 --------
1 file changed, 8 deletions(-)
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index 363c314..0e3090a 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list