SOTA-Export was broken for Non-Admins...
这个提交包含在:
父节点
3961732029
当前提交
9b89651138
共有 1 个文件被更改,包括 5 次插入 和 2 次删除
|
|
@ -5,7 +5,7 @@ class Csv extends CI_Controller {
|
|||
public function index() {
|
||||
$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(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
|
||||
$this->load->model('modes');
|
||||
$this->load->model('logbook_model');
|
||||
|
|
@ -26,8 +26,11 @@ class Csv extends CI_Controller {
|
|||
}
|
||||
|
||||
public function export() {
|
||||
$this->load->model('csv_model');
|
||||
$this->load->model('user_model');
|
||||
|
||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
|
||||
$this->load->model('csv_model');
|
||||
// Parameters
|
||||
$station_id = $this->security->xss_clean($this->input->post('station_profile'));
|
||||
$band = $this->security->xss_clean($this->input->post('band'));
|
||||
|
|
|
|||
正在加载…
在新工单中引用