summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-24 13:55:04 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-24 13:55:04 +0200
commit70ca292fd9c74a6f78983ae252729ee6fa69b1f4 (patch)
tree6b8960f6c207cca96710588817da4f9634e5e0eb
parent84d36df70b7bfb5e7cf79c7a089675d79943084d (diff)
downloadnextcloud-server-70ca292fd9c74a6f78983ae252729ee6fa69b1f4.tar.gz
nextcloud-server-70ca292fd9c74a6f78983ae252729ee6fa69b1f4.zip
only the mount point has delete and update permissions to enable rename operation
-rw-r--r--lib/private/files/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 48e7cb85bef..c9c1fc3c1bc 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -896,7 +896,7 @@ class View {
return false;
}
- if ($mount instanceof MoveableMount) {
+ if ($mount instanceof MoveableMount && $internalPath === '') {
$data['permissions'] |= \OCP\PERMISSION_DELETE | \OCP\PERMISSION_UPDATE;
}