Commit e6bd0a7d authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'patch-5' into 'stable-3.1'

Update rest.php to check if remote api is allowed.

See merge request ispconfig/ispconfig3!893
parents 6006cbf0 5d1673ed
......@@ -6,7 +6,11 @@ require_once '../../lib/';
$conf['start_session'] = false;
require_once '../../lib/';
$security_config = $app->getconf->get_security_config('permissions');
if($security_config['remote_api_allowed'] != 'yes') die('Remote API is disabled in security settings.');
$rest_handler = new ISPConfigRESTHandler();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment