diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-04 11:07:31 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-05 15:49:34 +0200 |
commit | 6578f00b4bcfbd5bc44bc12e341506f922498d7b (patch) | |
tree | 6ef948934965edb35a6852ca75144848844b7722 /tests/lib/share | |
parent | cf9099c7885453bcf15e40cbed722f432dffa1fb (diff) | |
download | nextcloud-server-6578f00b4bcfbd5bc44bc12e341506f922498d7b.tar.gz nextcloud-server-6578f00b4bcfbd5bc44bc12e341506f922498d7b.zip |
unify share settings
Diffstat (limited to 'tests/lib/share')
-rw-r--r-- | tests/lib/share/share.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index aae91fa1087..95983ee70e6 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -384,8 +384,8 @@ class Test_Share extends PHPUnit_Framework_TestCase { } catch (Exception $exception) { $this->assertEquals($message, $exception->getMessage()); } - $policy = OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global'); - OC_Appconfig::setValue('core', 'shareapi_share_policy', 'groups_only'); + $policy = OC_Appconfig::getValue('core', 'shareapi_only_share_with_group_members', 'no'); + OC_Appconfig::setValue('core', 'shareapi_only_share_with_group_members', 'yes'); $message = 'Sharing test.txt failed, because '.$this->user1.' is not a member of the group '.$this->group2; try { OCP\Share::shareItem('test', 'test.txt', OCP\Share::SHARE_TYPE_GROUP, $this->group2, OCP\PERMISSION_READ); @@ -393,7 +393,7 @@ class Test_Share extends PHPUnit_Framework_TestCase { } catch (Exception $exception) { $this->assertEquals($message, $exception->getMessage()); } - OC_Appconfig::setValue('core', 'shareapi_share_policy', $policy); + OC_Appconfig::setValue('core', 'shareapi_only_share_with_group_members', $policy); // Valid share $this->shareUserOneTestFileWithGroupOne(); |