nextcloud/settings/ajax/enableapp.php

13 lines
207 B
PHP
Raw Normal View History

<?php
// Init owncloud
require_once('../../lib/base.php');
2011-10-01 01:10:08 +04:00
OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();
if(OC_App::enable($_POST['appid'])){
OC_JSON::success();
}else{
OC_JSON::error();
}