From 7646551779e6848c7a2bbe73685e7682f9e0e4e4 Mon Sep 17 00:00:00 2001 From: "Joerg (DJ7NT)" Date: Wed, 25 Jun 2025 06:52:56 +0200 Subject: [PATCH] Only Admin should see this / call it --- application/controllers/Mode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Mode.php b/application/controllers/Mode.php index 865243d84..630927e24 100644 --- a/application/controllers/Mode.php +++ b/application/controllers/Mode.php @@ -12,7 +12,7 @@ class Mode extends CI_Controller { $this->load->helper(array('form', 'url')); $this->load->model('user_model'); - if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); } + if(!$this->user_model->authorize(99)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); } } public function index() @@ -119,4 +119,4 @@ class Mode extends CI_Controller { echo json_encode(array('message' => 'OK')); return; } -} \ No newline at end of file +}