mirror of
https://github.com/netzbegruenung/circles.git
synced 2024-05-06 05:33:41 +02:00
Merge pull request #665 from nextcloud/enh/noid/no-limit-to-circles
infinite members by default
This commit is contained in:
commit
ab2d4f3039
|
@ -607,12 +607,12 @@ class CircleService {
|
|||
$members = $this->memberRequest->getMembers($circle->getSingleId(), null, null, $filter);
|
||||
|
||||
$limit = $this->getInt('members_limit', $circle->getSettings());
|
||||
if ($limit === 0) {
|
||||
$limit = $this->configService->getAppValueInt(ConfigService::MEMBERS_LIMIT);
|
||||
}
|
||||
if ($limit === -1) {
|
||||
return false;
|
||||
}
|
||||
if ($limit === 0) {
|
||||
$limit = $this->configService->getAppValue(ConfigService::MEMBERS_LIMIT);
|
||||
}
|
||||
|
||||
return (sizeof($members) >= $limit);
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ class ConfigService {
|
|||
self::EVENT_EXAMPLES => '0',
|
||||
|
||||
self::SELF_SIGNED_CERT => '0',
|
||||
self::MEMBERS_LIMIT => '50',
|
||||
self::MEMBERS_LIMIT => '-1',
|
||||
self::ACTIVITY_ON_NEW_CIRCLE => '1',
|
||||
self::MIGRATION_BYPASS => '0',
|
||||
self::MIGRATION_22 => '0',
|
||||
|
|
Loading…
Reference in a new issue