Merge pull request #3231 from nextcloud/backport/3225/stable22

[stable22] Check for null value to avoid TypeError in the group manager
This commit is contained in:
Julius Härtl
2021-08-05 09:04:16 +02:00
committed by GitHub

View File

@@ -308,6 +308,10 @@ class PermissionService {
}
public function canCreate() {
if ($this->userId === null) {
return false;
}
$groups = $this->getGroupLimitList();
if (count($groups) === 0) {
return true;