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

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

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