Merge pull request #2374 from int2001/radio_delete_fix

Delete HW-Radio worked only for admins. Fixed that
这个提交包含在:
Peter Goodhall 2023-08-05 10:57:18 +01:00 提交者 GitHub
当前提交 e154037e2c
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -202,7 +202,7 @@
function delete($id) { function delete($id) {
// Check Auth // Check Auth
$this->load->model('user_model'); $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'); $this->load->model('cat');