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

// Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
OC_JSON::setContentTypeHeader();

if(OC_App::enable($_POST['appid'])){
	OC_JSON::success();
}else{
	OC_JSON::error();
}