From f7eda87a22ffb64c24b200cd758b6cf05cac28e3 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 23 Jun 2025 05:02:58 +0000 Subject: [PATCH] Instance-Mode Only 4 admin --- 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 +}