Skip to content

Commit 3ec3d3f

Browse files
committed
fixup! fix: Increase limit for share/unshare requests per hour
1 parent 0859d83 commit 3ec3d3f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/dav/lib/DAV/Security/RateLimiting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function check(): void {
3434
}
3535

3636
$identifier = 'share-addressbook-or-calendar';
37-
$userLimit = $this->config->getValueInt('dav', 'rateLimitShareAddressbookOrCalendar', 200);
37+
$userLimit = $this->config->getValueInt('dav', 'rateLimitShareAddressbookOrCalendar', 100);
3838
$userPeriod = $this->config->getValueInt('dav', 'rateLimitPeriodShareAddressbookOrCalendar', 3600);
3939

4040
try {

apps/dav/tests/unit/DAV/Security/RateLimitingTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class RateLimitingTest extends TestCase {
2424
private IAppConfig&MockObject $config;
2525
private ILimiter&MockObject $limiter;
2626
private RateLimiting $rateLimiting;
27-
private string $userId = 'user123';
2827

2928
protected function setUp(): void {
3029
parent::setUp();
@@ -86,7 +85,7 @@ public function testShareRequestRateLimitExceeded(): void {
8685
->method('registerUserRequest')
8786
->with(
8887
'share-addressbook-or-calendar',
89-
20,
88+
100,
9089
3600,
9190
$user,
9291
)

0 commit comments

Comments
 (0)