]> source.dussan.org Git - nextcloud-server.git/commitdiff
Avoid checking for brute force protection capabilities when upgrading
authorJulius Härtl <jus@bitgrid.net>
Fri, 25 Sep 2020 10:03:55 +0000 (12:03 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
This might happen a releases that doesn't have this table yet

Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Security/Bruteforce/Capabilities.php

index eab55db1c90f06226cfb8a5a11d129cc107977e2..fcf05efbd7e75cc090318df9daa3b4852d617d40 100644 (file)
@@ -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())