Skip to content
Snippets Groups Projects
Commit 574de2d9 authored by Björn Schießle's avatar Björn Schießle Committed by Robin Appelman
Browse files

the mount point always have delete permissions to allow unmount

parent ca6631a7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment