summaryrefslogtreecommitdiffstats
path: root/settings/ajax/enableapp.php
blob: 735794360b33eba5c9b7bfeabd777e9570176431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

OC_JSON::checkAdminUser();
OCP\JSON::callCheck();

try {
	OC_App::enable(OC_App::cleanAppId($_POST['appid']));
	OC_JSON::success();
} catch (Exception $e) {
	OC_Log::write('core', $e->getMessage(), OC_Log::ERROR);
	OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
}