kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #2374 from int2001/radio_delete_fix
Delete HW-Radio worked only for admins. Fixed thatpull/2377/head
commit
e154037e2c
|
@ -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');
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue