Commit b11cf6f8 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11474 from owncloud/fix_trash_permission_check

check if I can create a file at the location
parents 295c46cc 5b5e9d14
......@@ -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 = '';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment