mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Delete HW-Radio worked only for admins. Fixed that
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user