Disable DCL-Controller if not enabled

This commit is contained in:
int2001
2025-08-23 15:01:25 +00:00
parent 3e3ffc09d0
commit 2b092d7fb6

View File

@@ -7,6 +7,7 @@ class Dcl extends CI_Controller {
parent::__construct();
$this->load->helper(array('form', 'url'));
if (!($this->config->item('enable_dcl_interface') ?? false)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); exit; }
$this->load->model('user_model');
if (ENVIRONMENT == 'maintenance' && $this->session->userdata('user_id') == '') {
echo __("Maintenance Mode is active. Try again later.")."\n";