mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
check if I can create a file at the location
This commit is contained in:
parent
a9c9b5edf4
commit
5b5e9d148e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue