check if I can create a file at the location

This commit is contained in:
Bjoern Schiessle 2014-10-08 10:56:06 +02:00
parent a9c9b5edf4
commit 5b5e9d148e

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 = '';
}