don't require auth to update lotw users
required for cron Signed-off-by: Joshua Rubin <me@jawa.dev>
这个提交包含在:
父节点
36621b1e23
当前提交
d118f0f3d2
共有 1 个文件被更改,包括 9 次插入 和 3 次删除
|
|
@ -7,13 +7,13 @@ class Lotw extends CI_Controller {
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->load->helper(array('form', 'url'));
|
$this->load->helper(array('form', 'url'));
|
||||||
|
|
||||||
$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'); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function loadFromFile($filepath)
|
private function loadFromFile($filepath)
|
||||||
{
|
{
|
||||||
|
$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'); }
|
||||||
|
|
||||||
// Figure out how we should be marking QSLs confirmed via LoTW
|
// Figure out how we should be marking QSLs confirmed via LoTW
|
||||||
$query = $query = $this->db->query('SELECT lotw_rcvd_mark FROM config');
|
$query = $query = $this->db->query('SELECT lotw_rcvd_mark FROM config');
|
||||||
$q = $query->row();
|
$q = $query->row();
|
||||||
|
|
@ -107,6 +107,9 @@ class Lotw extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function import() {
|
public function import() {
|
||||||
|
$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'); }
|
||||||
|
|
||||||
$data['page_title'] = "LoTW ADIF Import";
|
$data['page_title'] = "LoTW ADIF Import";
|
||||||
|
|
||||||
$config['upload_path'] = './uploads/';
|
$config['upload_path'] = './uploads/';
|
||||||
|
|
@ -192,6 +195,9 @@ class Lotw extends CI_Controller {
|
||||||
} // end function
|
} // end function
|
||||||
|
|
||||||
public function export() {
|
public function export() {
|
||||||
|
$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'); }
|
||||||
|
|
||||||
$data['page_title'] = "LoTW .TQ8 Upload";
|
$data['page_title'] = "LoTW .TQ8 Upload";
|
||||||
|
|
||||||
$config['upload_path'] = './uploads/';
|
$config['upload_path'] = './uploads/';
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用