summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-05 18:32:46 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-04-07 17:33:29 +0200
commit69b36fc2c5835d854279b51ff795312f988218a6 (patch)
tree96f3ef2614405b88fe9d64cacd8367b975a921a0 /lib/private/Template
parent9c84aa5870204a871024ca18b4994ed40defdd9b (diff)
downloadnextcloud-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.php2
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')),