Only Admin should see this / call it

This commit is contained in:
Joerg (DJ7NT)
2025-06-25 06:52:56 +02:00
committed by GitHub
parent adc83ab2f5
commit 7646551779

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()