diff options
author | Dries Mys <dries.mys@my-dreams.be> | 2021-06-01 01:11:21 +0200 |
---|---|---|
committer | Dries Mys <dries.mys@my-dreams.be> | 2021-06-05 22:22:39 +0200 |
commit | cb95b8de3f41f852c90a1add2189c8928234c1eb (patch) | |
tree | 19aad80803878142c01996bc69508dad2e41ac52 /apps/provisioning_api/lib/Controller/GroupsController.php | |
parent | 644cb4154b423bfbf7562928ac3841a1644cdc98 (diff) | |
download | nextcloud-server-cb95b8de3f41f852c90a1add2189c8928234c1eb.tar.gz nextcloud-server-cb95b8de3f41f852c90a1add2189c8928234c1eb.zip |
Group may be null if backend doesn't support creating groups
Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
Diffstat (limited to 'apps/provisioning_api/lib/Controller/GroupsController.php')
-rw-r--r-- | apps/provisioning_api/lib/Controller/GroupsController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/provisioning_api/lib/Controller/GroupsController.php b/apps/provisioning_api/lib/Controller/GroupsController.php index c5ae417d465..7b6e5319c2a 100644 --- a/apps/provisioning_api/lib/Controller/GroupsController.php +++ b/apps/provisioning_api/lib/Controller/GroupsController.php @@ -247,6 +247,9 @@ class GroupsController extends AUserData { throw new OCSException('group exists', 102); } $group = $this->groupManager->createGroup($groupid); + if ($group === null) { + throw new OCSException('Not supported by backend', 103); + } if ($displayname !== '') { $group->setDisplayName($displayname); } |