From d222d2b73f777aa2cd016af87f7e1d2e744efef1 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 8 Oct 2014 10:56:06 +0200 Subject: [PATCH] check if I can create a file at the location --- apps/files_trashbin/lib/trashbin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 492a0e3e1a6..121f8f77ed5 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -339,7 +339,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 = ''; } -- 2.39.5