only admins are allowed to enter cron page

This commit is contained in:
HB9HIL
2024-04-23 01:46:26 +02:00
parent b0444fc5b8
commit cdbaefb42d

View File

@@ -17,7 +17,7 @@ class cron extends CI_Controller
public function index() {
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
if(!$this->user_model->authorize(99)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
$this->load->helper('file');