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
83f4f480ab
commit
f5501ca276
|
@ -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