Instance-Mode Only 4 admin

This commit is contained in:
int2001
2025-06-23 05:02:58 +00:00
parent 89d3a0400b
commit f7eda87a22

View File

@@ -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;
}
}
}