Movable storage root can always be moved and deleted

remotes/origin/ldap_group_count
Robin Appelman 12 years ago
parent a432459685
commit e362373a30
  1. 2
      lib/private/files/view.php

@ -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));
}

Loading…
Cancel
Save