Skip to content
Snippets Groups Projects
Unverified Commit f5501ca2 authored by Julius Härtl's avatar Julius Härtl
Browse files

Avoid checking for brute force protection capabilities when upgrading


This might happen a releases that doesn't have this table yet

Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 83f4f480
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment