diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-05-12 00:33:26 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-05-12 01:31:15 +0200 |
commit | 8413ed947577a37c79ceebfc827acd37494d1a37 (patch) | |
tree | d0de6294ed93ad2c9e2d191bd5d2f2d399e485e1 /apps | |
parent | 1e271e9f76a5378d719e699c828a530c95ece336 (diff) | |
download | nextcloud-server-8413ed947577a37c79ceebfc827acd37494d1a37.tar.gz nextcloud-server-8413ed947577a37c79ceebfc827acd37494d1a37.zip |
allow to set valid scopes only in AccountProperty
the auto-fallback to v2-local is removed as well to react on wrong input
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 84fdaf8bc89..f254620f330 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -759,8 +759,8 @@ class UsersController extends AUserData { $userAccount = $this->accountManager->getAccount($targetUser); $userProperty = $userAccount->getProperty($propertyName); if ($userProperty->getScope() !== $value) { - $userProperty->setScope($value); try { + $userProperty->setScope($value); $this->accountManager->updateAccount($userAccount); } catch (\InvalidArgumentException $e) { throw new OCSException('Invalid ' . $e->getMessage(), 102); |