From 5b5e9d148e6bab6ae4b78cebd35686e44703216c 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 3fe0ef0b7de..120df345dda 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -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 = ''; } -- 2.39.5