Avoid checking for brute force protection capabilities when upgrading
This might happen a releases that doesn't have this table yet Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7f1f8963e4
commit
934f8a17f9
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue