diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-05 18:32:46 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-04-07 17:33:29 +0200 |
commit | 69b36fc2c5835d854279b51ff795312f988218a6 (patch) | |
tree | 96f3ef2614405b88fe9d64cacd8367b975a921a0 /lib/private/Template | |
parent | 9c84aa5870204a871024ca18b4994ed40defdd9b (diff) | |
download | nextcloud-server-69b36fc2c5835d854279b51ff795312f988218a6.tar.gz nextcloud-server-69b36fc2c5835d854279b51ff795312f988218a6.zip |
Don't inject Bruteforce capability info in the webui
This capability do DB access and as far I know is not used by the webui.
This remove one DB query for each page load.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index abd2ed1dcd8..58f3106bafd 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -187,7 +187,7 @@ class JSConfigHelper { $lastConfirmTimestamp = 0; } - $capabilities = $this->capabilitiesManager->getCapabilities(); + $capabilities = $this->capabilitiesManager->getCapabilities(false, true); $config = [ 'session_lifetime' => min($this->config->getSystemValue('session_lifetime', $this->iniWrapper->getNumeric('session.gc_maxlifetime')), $this->iniWrapper->getNumeric('session.gc_maxlifetime')), |