diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-03 19:47:23 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:01 +0200 |
commit | 574de2d91b1bb913385e308d5e53b0e7faa29d8e (patch) | |
tree | 83c96a0e40896f0ac53416393446cfed5d4a18e9 /apps | |
parent | ca6631a710c925052d9ed673a447149bf3a16af3 (diff) | |
download | nextcloud-server-574de2d91b1bb913385e308d5e53b0e7faa29d8e.tar.gz nextcloud-server-574de2d91b1bb913385e308d5e53b0e7faa29d8e.zip |
the mount point always have delete permissions to allow unmount
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index ea0e420a5c4..6b2873302a5 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; } |