mirror of
https://github.com/nextcloud/server.git
synced 2026-10-26 13:18:14 +01:00
The scenarios added for the block and allow list set `shareapi_exclude_groups` and `shareapi_exclude_groups_list`, but neither context removed them again. As `resetAppConfigs()` runs before every scenario, the values leaked into all following scenarios of the sharees and contacts-menu features and made them fail. Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
29 lines
865 B
PHP
29 lines
865 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
use Behat\Behat\Context\Context;
|
|
use Behat\Behat\Context\SnippetAcceptingContext;
|
|
|
|
require __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
|
|
/**
|
|
* Features context.
|
|
*/
|
|
class ShareesContext implements Context, SnippetAcceptingContext {
|
|
use Sharing;
|
|
use AppConfiguration;
|
|
|
|
protected function resetAppConfigs() {
|
|
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
|
|
$this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
|
|
$this->deleteServerConfig('core', 'shareapi_allow_group_sharing');
|
|
$this->deleteServerConfig('core', 'shareapi_exclude_groups');
|
|
$this->deleteServerConfig('core', 'shareapi_exclude_groups_list');
|
|
}
|
|
}
|