diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-15 14:24:51 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-15 14:24:51 +0100 |
commit | c4b0a1cdfd8d2c4961f1049b424c7655aef3a55e (patch) | |
tree | cc8ff6b55d7502e62d53c66ccbc94454986d18e0 /build/integration/features/bootstrap/Sharing.php | |
parent | 4e9c3b3d641d9f11a78420163dfad46c74e554b8 (diff) | |
download | nextcloud-server-c4b0a1cdfd8d2c4961f1049b424c7655aef3a55e.tar.gz nextcloud-server-c4b0a1cdfd8d2c4961f1049b424c7655aef3a55e.zip |
Add tests for user enumeration and sharing in group only
Diffstat (limited to 'build/integration/features/bootstrap/Sharing.php')
-rw-r--r-- | build/integration/features/bootstrap/Sharing.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php index f516b97146d..f81442c9769 100644 --- a/build/integration/features/bootstrap/Sharing.php +++ b/build/integration/features/bootstrap/Sharing.php @@ -7,8 +7,9 @@ require __DIR__ . '/../../vendor/autoload.php'; -trait Sharing{ +trait Sharing { use Provisioning; + use AppConfiguration; /** @var int */ private $sharingApiVersion = 1; @@ -520,5 +521,10 @@ trait Sharing{ } return $sharees; } + + protected function resetAppConfigs() { + $this->modifyServerConfig('core', 'shareapi_only_share_with_group_members', 'no'); + $this->modifyServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'); + } } |