diff --git a/application/controllers/Dcl.php b/application/controllers/Dcl.php index 3f498e14e..3559a3fef 100644 --- a/application/controllers/Dcl.php +++ b/application/controllers/Dcl.php @@ -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";