diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-08-26 10:30:26 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-08-26 18:04:06 +0000 |
commit | 15416e73057aa8d56d6420fcebcc877f5e01be49 (patch) | |
tree | f6fb1a50d718d72ababff6a0ab7e3b225749d909 /apps/dav | |
parent | 04fac4f540b17976e20d5678eff23352510befcf (diff) | |
download | nextcloud-server-15416e73057aa8d56d6420fcebcc877f5e01be49.tar.gz nextcloud-server-15416e73057aa8d56d6420fcebcc877f5e01be49.zip |
Fix copy in view-only mode
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/dav')
-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); } /** |