summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-11 11:40:14 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:25 +0200
commitdfb69e9418704d8553193676f3a2ae85697c0fa9 (patch)
treed134c8efcbc3b31a8e264799b51a244c8d9003e6 /lib/private
parentd4085d81485c3d973faf4211e11af1c1853e619c (diff)
downloadnextcloud-server-dfb69e9418704d8553193676f3a2ae85697c0fa9.tar.gz
nextcloud-server-dfb69e9418704d8553193676f3a2ae85697c0fa9.zip
allow user to delete shared files/folders
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/view.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 6d630f978ba..3f73632be13 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -348,7 +348,8 @@ class View {
$postFix = (substr($path, -1, 1) === '/') ? '/' : '';
$absolutePath = Filesystem::normalizePath($this->getAbsolutePath($path));
list($storage, $internalPath) = Filesystem::resolvePath($absolutePath . $postFix);
- if (!$internalPath || $internalPath === '' || $internalPath === '/') {
+ if (!($storage instanceof \OC\Files\Storage\Shared) &&
+ (!$internalPath || $internalPath === '' || $internalPath === '/')) {
// do not allow deleting the storage's root / the mount point
// because for some storages it might delete the whole contents
// but isn't supposed to work that way