Merge pull request #11474 from owncloud/fix_trash_permission_check
check if I can create a file at the location
This commit is contained in:
commit
b11cf6f838
|
@ -376,7 +376,7 @@ class Trashbin {
|
||||||
// if location no longer exists, restore file in the root directory
|
// if location no longer exists, restore file in the root directory
|
||||||
if ($location !== '/' &&
|
if ($location !== '/' &&
|
||||||
(!$view->is_dir('files' . $location) ||
|
(!$view->is_dir('files' . $location) ||
|
||||||
!$view->isUpdatable('files' . $location))
|
!$view->isCreatable('files' . $location))
|
||||||
) {
|
) {
|
||||||
$location = '';
|
$location = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue