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
commit e154037e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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