Merge pull request #44014 from nextcloud/fix/remove-base-php-unused-endpoint

fix: Remove unused endpoint from base.php
pull/43764/head
Côme Chilliet 3 months ago committed by GitHub
commit dc67825541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save