Delete HW-Radio worked only for admins. Fixed that

This commit is contained in:
int2001
2023-08-05 06:51:54 +00:00
parent 22fba830a4
commit 8c7e4a9a10

View File

@@ -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');