summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-10-08 10:56:06 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-10-08 10:56:06 +0200
commit5b5e9d148e6bab6ae4b78cebd35686e44703216c (patch)
tree4624e2e6611f02fb17ba391e0e46ab17ee416774 /apps/files_trashbin
parenta9c9b5edf4dfc4910a005f046d8124be363e400f (diff)
downloadnextcloud-server-5b5e9d148e6bab6ae4b78cebd35686e44703216c.tar.gz
nextcloud-server-5b5e9d148e6bab6ae4b78cebd35686e44703216c.zip
check if I can create a file at the location
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 1 insertions, 1 deletions
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 = '';
}