From 2b092d7fb69bc7aa76caf6153b923807535c443b Mon Sep 17 00:00:00 2001 From: int2001 Date: Sat, 23 Aug 2025 15:01:25 +0000 Subject: [PATCH] Disable DCL-Controller if not enabled --- application/controllers/Dcl.php | 1 + 1 file changed, 1 insertion(+) 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";