diff options
author | Florian Klinger <florian.klinger@nextcloud.com> | 2024-03-12 10:53:14 +0100 |
---|---|---|
committer | Andrey Borysenko <andrey18106x@gmail.com> | 2024-03-18 20:09:15 +0200 |
commit | f3a4abd98cc84f3ecdfd4421015d310a731ecb2d (patch) | |
tree | 72d7a0d019a6433f42b95fcc49f236837850e5ca /lib/private/AppFramework/DependencyInjection/DIContainer.php | |
parent | 133a17aa96f3778a8c527cf096eb5a575df24e84 (diff) | |
download | nextcloud-server-f3a4abd98cc84f3ecdfd4421015d310a731ecb2d.tar.gz nextcloud-server-f3a4abd98cc84f3ecdfd4421015d310a731ecb2d.zip |
fix: add check for app_api_system session flag to bypass rate limit
Signed-off-by: Florian Klinger <florian.klinger@nextcloud.com>
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Diffstat (limited to 'lib/private/AppFramework/DependencyInjection/DIContainer.php')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index a5273d2f335..5fff0aec9d8 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -302,7 +302,8 @@ class DIContainer extends SimpleContainer implements IAppContainer { $c->get(IRequest::class), $c->get(IUserSession::class), $c->get(IControllerMethodReflector::class), - $c->get(OC\Security\RateLimiting\Limiter::class) + $c->get(OC\Security\RateLimiting\Limiter::class), + $c->get(ISession::class) ) ); $dispatcher->registerMiddleware( |