aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-09 08:59:48 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-09 08:59:48 +0200
commitb11cf6f83880565046fbd4fbc02607734f3c5bf7 (patch)
tree969dfa733efbca9a6d5c8797a91bd7e4cf8d9796
parent295c46ccb5ed9f43da2326d8a15c06d4e305a377 (diff)
parent5b5e9d148e6bab6ae4b78cebd35686e44703216c (diff)
downloadnextcloud-server-b11cf6f83880565046fbd4fbc02607734f3c5bf7.tar.gz
nextcloud-server-b11cf6f83880565046fbd4fbc02607734f3c5bf7.zip
Merge pull request #11474 from owncloud/fix_trash_permission_check
check if I can create a file at the location
-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 = '';
}