diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index ea0e420a5c47f3b7bfdd63341e71b30852be7f95..6b2873302a543a5d0df526dd0f55abb3a6d3cf18 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -106,8 +106,8 @@ class Shared extends \OC\Files\Storage\Common { */ public function getPermissions($target = '') { $permissions = $this->share['permissions']; - // part file are always have delete permissions - if (pathinfo($target, PATHINFO_EXTENSION) === 'part') { + // part files and the mount point always have delete permissions + if ($target === '' || pathinfo($target, PATHINFO_EXTENSION) === 'part') { $permissions |= \OCP\PERMISSION_DELETE; }