Fixed an issue that allowed some disabled module content to be visible or accessible.
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
use api\classes\API_servers;
|
||||
|
||||
if (!$GLOBALS['modules_enabled']['servers']) {
|
||||
echo '405 Not Allowed';
|
||||
exit;
|
||||
}
|
||||
|
||||
session_start();
|
||||
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/api/classes/API_servers.php';
|
||||
|
||||
Reference in New Issue
Block a user