From: Bjoern Schiessle Date: Wed, 8 Oct 2014 08:56:06 +0000 (+0200) Subject: check if I can create a file at the location X-Git-Tag: v7.0.3RC1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d222d2b73f777aa2cd016af87f7e1d2e744efef1;p=nextcloud-server.git check if I can create a file at the location --- 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 = ''; }