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/public/Capabilities | |
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/public/Capabilities')
-rw-r--r-- | lib/public/Capabilities/IInitialStateExcludedCapability.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/public/Capabilities/IInitialStateExcludedCapability.php b/lib/public/Capabilities/IInitialStateExcludedCapability.php new file mode 100644 index 00000000000..db1c42f7696 --- /dev/null +++ b/lib/public/Capabilities/IInitialStateExcludedCapability.php @@ -0,0 +1,34 @@ +<?php + +declare(strict_types=1); + +/** + * @copyright Copyright (c) 2022 Carl Schwan <carl@carlschwan.eu> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +namespace OCP\Capabilities; + +/** + * Indicate that a capability should not be injected in the initial state + * of the page as it might be expensive to query and not useful for the + * webui. + * + * @since 24.0.0 + */ +interface IInitialStateExcludedCapability { +} |