From cdbaefb42daf24cda252704242fafefc963fe231 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 23 Apr 2024 01:46:26 +0200 Subject: [PATCH] only admins are allowed to enter cron page --- application/controllers/Cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Cron.php b/application/controllers/Cron.php index 91f80f0b1..e5943d583 100644 --- a/application/controllers/Cron.php +++ b/application/controllers/Cron.php @@ -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');