]> 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)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 8 Oct 2014 08:56:06 +0000 (10:56 +0200)
apps/files_trashbin/lib/trashbin.php

index 3fe0ef0b7de9858a969f5ace11c160149d889c5a..120df345ddaf07b602c664096d78862176134047 100644 (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 = '';
                                }