fix(dav): Public WebDAV endpoint should allow `GET` requests
`GET` should be allowed even without Ajax header to allow downloading files, or show files in the viewer. All other requests could be guarded, but this should not. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>pull/48630/head
parent
8bf6a60199
commit
b79d2b7041
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
use Behat\Behat\Context\Context;
|
||||
use Behat\Behat\Context\SnippetAcceptingContext;
|
||||
|
||||
require __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
class DavFeatureContext implements Context, SnippetAcceptingContext {
|
||||
use AppConfiguration;
|
||||
use ContactsMenu;
|
||||
use ExternalStorage;
|
||||
use Search;
|
||||
use WebDav;
|
||||
use Trashbin;
|
||||
|
||||
protected function resetAppConfigs() {
|
||||
$this->deleteServerConfig('files_sharing', 'outgoing_server2server_share_enabled');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue