summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Security/Bruteforce/Capabilities.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Security/Bruteforce/Capabilities.php b/lib/private/Security/Bruteforce/Capabilities.php
index eab55db1c90..fcf05efbd7e 100644
--- a/lib/private/Security/Bruteforce/Capabilities.php
+++ b/lib/private/Security/Bruteforce/Capabilities.php
@@ -46,6 +46,10 @@ class Capabilities implements IPublicCapability {
}
public function getCapabilities() {
+ if (version_compare(\OC::$server->getConfig()->getSystemValue('version', '0.0.0.0'), '12.0.0.0', '<')) {
+ return [];
+ }
+
return [
'bruteforce' => [
'delay' => $this->throttler->getDelay($this->request->getRemoteAddress())