Merge pull request #2374 from int2001/radio_delete_fix

Delete HW-Radio worked only for admins. Fixed that
pull/2377/head
Peter Goodhall 2023-08-05 10:57:18 +01:00 zatwierdzone przez GitHub
commit e154037e2c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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