Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-26 11:30:26 +0300
committerVincent Petry <vincent@nextcloud.com>2022-08-26 15:18:47 +0300
commitc1df72fc8b578e201b89793c65755f767f5073c7 (patch)
tree6e810aea9640c484a0381b9ad1fdce6a75280856 /apps/dav/lib
parente9a344a6444d59a63a00c2a291ae6d1dbe30a24e (diff)
Fix copy in view-only mode
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/DAV/ViewOnlyPlugin.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/DAV/ViewOnlyPlugin.php b/apps/dav/lib/DAV/ViewOnlyPlugin.php
index 1504969b5b4..b4652da09e1 100644
--- a/apps/dav/lib/DAV/ViewOnlyPlugin.php
+++ b/apps/dav/lib/DAV/ViewOnlyPlugin.php
@@ -57,6 +57,7 @@ class ViewOnlyPlugin extends ServerPlugin {
//priority 90 to make sure the plugin is called before
//Sabre\DAV\CorePlugin::httpGet
$this->server->on('method:GET', [$this, 'checkViewOnly'], 90);
+ $this->server->on('method:COPY', [$this, 'checkViewOnly'], 90);
}
/**