From 8c7e4a9a109caed3ca8192e6f16a8caf6a2e73ce Mon Sep 17 00:00:00 2001 From: int2001 Date: Sat, 5 Aug 2023 06:51:54 +0000 Subject: [PATCH] Delete HW-Radio worked only for admins. Fixed that --- application/controllers/Radio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php index a276f0fb..b9ead598 100755 --- a/application/controllers/Radio.php +++ b/application/controllers/Radio.php @@ -202,7 +202,7 @@ function delete($id) { // Check Auth $this->load->model('user_model'); - if(!$this->user_model->authorize(99)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } + if(!$this->user_model->authorize(3)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } $this->load->model('cat');