the mount point always have delete permissions to allow unmount
This commit is contained in:
parent
ca6631a710
commit
574de2d91b
|
@ -106,8 +106,8 @@ class Shared extends \OC\Files\Storage\Common {
|
||||||
*/
|
*/
|
||||||
public function getPermissions($target = '') {
|
public function getPermissions($target = '') {
|
||||||
$permissions = $this->share['permissions'];
|
$permissions = $this->share['permissions'];
|
||||||
// part file are always have delete permissions
|
// part files and the mount point always have delete permissions
|
||||||
if (pathinfo($target, PATHINFO_EXTENSION) === 'part') {
|
if ($target === '' || pathinfo($target, PATHINFO_EXTENSION) === 'part') {
|
||||||
$permissions |= \OCP\PERMISSION_DELETE;
|
$permissions |= \OCP\PERMISSION_DELETE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue