diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-03-06 10:16:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 10:16:27 +0100 |
commit | dc6782554127af6bcaecfc08d767b662d268d078 (patch) | |
tree | 6688bbd96a5416f02bbbf7dfcd43031126f8a045 | |
parent | 14ef17e5e21017b36ff106eb9202a0cd54771199 (diff) | |
parent | f2c36a55fe2a0ef2efd15a9ce6a4c8f8420d87dc (diff) | |
download | nextcloud-server-dc6782554127af6bcaecfc08d767b662d268d078.tar.gz nextcloud-server-dc6782554127af6bcaecfc08d767b662d268d078.zip |
Merge pull request #44014 from nextcloud/fix/remove-base-php-unused-endpoint
fix: Remove unused endpoint from base.php
-rw-r--r-- | lib/base.php | 15 |
1 files changed, 0 insertions, 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']); |