From f2c36a55fe2a0ef2efd15a9ce6a4c8f8420d87dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 5 Mar 2024 23:56:27 +0100 Subject: [PATCH] fix: Remove unused endpoint from base.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s not called anymore, and app loading cannot break boot anymore Signed-off-by: Côme Chilliet --- lib/base.php | 15 --------------- 1 file changed, 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']);