mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
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__ . '/autoload.php';
|
|
|
|
|
|
/**
|
|
* Features context.
|
|
*/
|
|
class ShareesContext implements Context, SnippetAcceptingContext {
|
|
use Sharing;
|
|
use AppConfiguration;
|
|
|
|
protected function resetAppConfigs() {
|
|
$this->deleteServerConfig('core', 'shareapi_allow_group_sharing');
|
|
$this->deleteServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration');
|
|
$this->deleteServerConfig('core', 'shareapi_exclude_groups');
|
|
$this->deleteServerConfig('core', 'shareapi_exclude_groups_list');
|
|
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members');
|
|
$this->deleteServerConfig('core', 'shareapi_only_share_with_group_members_exclude_group_list');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_email');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_dn');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_userid');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_group');
|
|
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_phone');
|
|
}
|
|
}
|