From 70ca292fd9c74a6f78983ae252729ee6fa69b1f4 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 24 Jun 2014 13:55:04 +0200 Subject: [PATCH] only the mount point has delete and update permissions to enable rename operation --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 48e7cb85be..c9c1fc3c1b 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; }