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>
This commit is contained in:
Côme Chilliet 2024-03-05 23:56:27 +01:00
parent 00e0fa48a0
commit f2c36a55fe
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 0 additions and 15 deletions

View File

@ -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']);