mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Add required $message parameter
This commit is contained in:
parent
b32b296ed7
commit
1e7f0f7341
1 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
|
|||
$sourcePermission = $infoSource && $infoSource->isDeletable();
|
||||
|
||||
if (!$destinationPermission || !$sourcePermission) {
|
||||
throw new Forbidden();
|
||||
throw new Forbidden('No permissions to move object.');
|
||||
}
|
||||
|
||||
$targetNodeExists = $this->nodeExists($destinationPath);
|
||||
|
|
@ -285,7 +285,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
|
|||
|
||||
$info = $this->fileView->getFileInfo(dirname($destination));
|
||||
if ($info && !$info->isUpdateable()) {
|
||||
throw new Forbidden();
|
||||
throw new Forbidden('No permissions to move object.');
|
||||
}
|
||||
|
||||
// this will trigger existence check
|
||||
|
|
|
|||
Loading…
Reference in a new issue