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:
Morris Jobke 2014-10-09 08:59:48 +02:00
commit b11cf6f838
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class Trashbin {
// if location no longer exists, restore file in the root directory
if ($location !== '/' &&
(!$view->is_dir('files' . $location) ||
!$view->isUpdatable('files' . $location))
!$view->isCreatable('files' . $location))
) {
$location = '';
}