diff --git a/lib/Service/PermissionService.php b/lib/Service/PermissionService.php index 7ad2174db..e6f8db541 100644 --- a/lib/Service/PermissionService.php +++ b/lib/Service/PermissionService.php @@ -248,12 +248,15 @@ class PermissionService { public function canCreate() { $groups = $this->getGroupLimitList(); + if (count($groups) === 0) { + return true; + } foreach ($groups as $group) { if ($this->groupManager->isInGroup($this->userId, $group)) { - return false; + return true; } } - return true; + return false; } private function getGroupLimitList() {