Merge pull request #2374 from int2001/radio_delete_fix

Delete HW-Radio worked only for admins. Fixed that
This commit is contained in:
Peter Goodhall
2023-08-05 10:57:18 +01:00
committed by GitHub

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