We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6006cbf commit 5d1673eCopy full SHA for 5d1673e
interface/web/remote/rest.php
@@ -6,7 +6,11 @@
6
$conf['start_session'] = false;
7
require_once '../../lib/app.inc.php';
8
9
-$app->load('rest_handler');
+$app->load('rest_handler,getconf');
10
+
11
+$security_config = $app->getconf->get_security_config('permissions');
12
+if($security_config['remote_api_allowed'] != 'yes') die('Remote API is disabled in security settings.');
13
14
$rest_handler = new ISPConfigRESTHandler();
15
$rest_handler->run();
16
0 commit comments