]> source.dussan.org Git - nextcloud-server.git/commitdiff
only the mount point has delete and update permissions to enable rename operation
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 24 Jun 2014 11:55:04 +0000 (13:55 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 24 Jun 2014 11:55:04 +0000 (13:55 +0200)
lib/private/files/view.php

index 48e7cb85bef444e256776d84e05b78d0e17cfbc2..c9c1fc3c1bc9b84b9003908f60ea9fe0b6f6745a 100644 (file)
@@ -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;
                }