Skip to content

Commit

Permalink
Merge pull request #44014 from nextcloud/fix/remove-base-php-unused-e…
Browse files Browse the repository at this point in the history
…ndpoint

fix: Remove unused endpoint from base.php
  • Loading branch information
come-nc authored Mar 6, 2024
2 parents 14ef17e + f2c36a5 commit dc67825
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1018,21 +1018,6 @@ public static function handleRequest(): void {
}
}

// 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']);
Expand Down

0 comments on commit dc67825

Please sign in to comment.