mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #30588 from nextcloud/bugfix/noid/fix-unset-scopes
This commit is contained in:
commit
2bc0749cb6
2 changed files with 2 additions and 1 deletions
|
|
@ -152,6 +152,7 @@ class AccountProperty implements IAccountProperty {
|
|||
|
||||
switch ($scope) {
|
||||
case IAccountManager::VISIBILITY_PRIVATE:
|
||||
case '':
|
||||
return IAccountManager::SCOPE_LOCAL;
|
||||
case IAccountManager::VISIBILITY_CONTACTS_ONLY:
|
||||
return IAccountManager::SCOPE_FEDERATED;
|
||||
|
|
|
|||
|
|
@ -84,8 +84,8 @@ class AccountPropertyTest extends TestCase {
|
|||
[IAccountManager::VISIBILITY_PRIVATE, IAccountManager::SCOPE_LOCAL],
|
||||
[IAccountManager::VISIBILITY_CONTACTS_ONLY, IAccountManager::SCOPE_FEDERATED],
|
||||
[IAccountManager::VISIBILITY_PUBLIC, IAccountManager::SCOPE_PUBLISHED],
|
||||
['', IAccountManager::SCOPE_LOCAL],
|
||||
// invalid values
|
||||
['', null],
|
||||
['unknown', null],
|
||||
['v2-unknown', null],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue