]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if I can create a file at the location
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 8 Oct 2014 08:56:06 +0000 (10:56 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 9 Oct 2014 11:30:11 +0000 (13:30 +0200)
apps/files_trashbin/lib/trashbin.php

index 492a0e3e1a6bdb4516443202e5a03ef71a9f8183..121f8f77ed541b2976d06277471cf3f2f7e9adde 100644 (file)
@@ -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 = '';
                                }