diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-05 23:56:27 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-06 00:05:15 +0100 |
commit | f2c36a55fe2a0ef2efd15a9ce6a4c8f8420d87dc (patch) | |
tree | 96c9ff491fcd8e1bff7f7c5f9809a28b5d281aef /lib/base.php | |
parent | 00e0fa48a0046a7549cd8b704b92a7e57f220bf3 (diff) | |
download | nextcloud-server-f2c36a55fe2a0ef2efd15a9ce6a4c8f8420d87dc.tar.gz nextcloud-server-f2c36a55fe2a0ef2efd15a9ce6a4c8f8420d87dc.zip |
fix: Remove unused endpoint from base.php
It’s not called anymore, and app loading cannot break boot anymore
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/base.php b/lib/base.php index 72afa0753ba..891161ff0c6 100644 --- a/lib/base.php +++ b/lib/base.php @@ -1018,21 +1018,6 @@ class OC { } } - // emergency app disabling - if ($requestPath === '/disableapp' - && $request->getMethod() === 'POST' - ) { - \OC_JSON::callCheck(); - \OC_JSON::checkAdminUser(); - $appIds = (array)$request->getParam('appid'); - foreach ($appIds as $appId) { - $appId = \OC_App::cleanAppId($appId); - Server::get(\OCP\App\IAppManager::class)->disableApp($appId); - } - \OC_JSON::success(); - exit(); - } - // Always load authentication apps OC_App::loadApps(['authentication']); OC_App::loadApps(['extended_authentication']); |