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

// Init owncloud

OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();

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