nextcloud/settings/ajax/disableapp.php

8 lines
132 B
PHP

<?php
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
OC_App::disable(OC_App::cleanAppId($_POST['appid']));
OC_JSON::success();