Merge pull request #3225 from nextcloud/bugfix/3194

Check for null value to avoid TypeError in the group manager
This commit is contained in:
Julius Härtl
2021-08-04 18:41:22 +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;