summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/UsersController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-12-03 12:16:39 +0100
committerJoas Schilling <coding@schilljs.com>2020-12-07 14:19:38 +0100
commitf648635758e34bab0173e02eb9b75aafc5e6a9ff (patch)
tree2864de1966f655eeef2078d14b5837821869c17f /apps/provisioning_api/lib/Controller/UsersController.php
parentf0ca76aefbe7717b9555e0dffb8c9340e14bf3cf (diff)
downloadnextcloud-server-f648635758e34bab0173e02eb9b75aafc5e6a9ff.tar.gz
nextcloud-server-f648635758e34bab0173e02eb9b75aafc5e6a9ff.zip
Make the throwing optional, so background tasks don't break
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/provisioning_api/lib/Controller/UsersController.php')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
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 edb1fc5121a..18baa07a395 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -655,7 +655,7 @@ class UsersController extends AUserData {
if ($userAccount[$key]['value'] !== $value) {
$userAccount[$key]['value'] = $value;
try {
- $this->accountManager->updateUser($targetUser, $userAccount);
+ $this->accountManager->updateUser($targetUser, $userAccount, true);
} catch (\InvalidArgumentException $e) {
throw new OCSException('Invalid ' . $e->getMessage(), 102);
}