diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-08-26 10:30:26 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-08-26 14:18:47 +0200 |
commit | c1df72fc8b578e201b89793c65755f767f5073c7 (patch) | |
tree | 6e810aea9640c484a0381b9ad1fdce6a75280856 /apps | |
parent | e9a344a6444d59a63a00c2a291ae6d1dbe30a24e (diff) | |
download | nextcloud-server-c1df72fc8b578e201b89793c65755f767f5073c7.tar.gz nextcloud-server-c1df72fc8b578e201b89793c65755f767f5073c7.zip |
Fix copy in view-only mode
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/DAV/ViewOnlyPlugin.php | 1 |
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); } /** |