Movable storage root can always be moved and deleted

This commit is contained in:
Robin Appelman 2014-05-28 14:01:40 +02:00
parent a432459685
commit e362373a30
1 changed files with 1 additions and 1 deletions

View File

@ -966,7 +966,7 @@ class View {
// do not allow renaming/deleting the mount point if they are not shared files/folders
// for shared files/folders we use the permissions given by the owner
if ($mount instanceof MoveableMount) {
$rootEntry['permissions'] = $permissions;
$rootEntry['permissions'] = $permissions | \OCP\PERMISSION_UPDATE | \OCP\PERMISSION_DELETE;
} else {
$rootEntry['permissions'] = $permissions & (\OCP\PERMISSION_ALL - (\OCP\PERMISSION_UPDATE | \OCP\PERMISSION_DELETE));
}