mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #60359 from nextcloud/fix-increase-limit-for-share-unshare-request
fix: Increase limit for share/unshare requests per hour
This commit is contained in:
commit
478d12c7d9
2 changed files with 2 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ class RateLimiting {
|
|||
}
|
||||
|
||||
$identifier = 'share-addressbook-or-calendar';
|
||||
$userLimit = $this->config->getValueInt('dav', 'rateLimitShareAddressbookOrCalendar', 20);
|
||||
$userLimit = $this->config->getValueInt('dav', 'rateLimitShareAddressbookOrCalendar', 100);
|
||||
$userPeriod = $this->config->getValueInt('dav', 'rateLimitPeriodShareAddressbookOrCalendar', 3600);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ class RateLimitingTest extends TestCase {
|
|||
private IAppConfig&MockObject $config;
|
||||
private ILimiter&MockObject $limiter;
|
||||
private RateLimiting $rateLimiting;
|
||||
private string $userId = 'user123';
|
||||
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
|
@ -86,7 +85,7 @@ class RateLimitingTest extends TestCase {
|
|||
->method('registerUserRequest')
|
||||
->with(
|
||||
'share-addressbook-or-calendar',
|
||||
20,
|
||||
100,
|
||||
3600,
|
||||
$user,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue