mirror of https://github.com/nextcloud/server
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:
parent
00e0fa48a0
commit
f2c36a55fe
15
lib/base.php
15
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']);
|
||||
|
|
Loading…
Reference in New Issue