mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Add auth to webadif controller
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
/* Controller to interact with the webADIF API */
|
||||
class Webadif extends CI_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->load->model('user_model');
|
||||
if (!$this->user_model->authorize(2)) {
|
||||
$this->session->set_flashdata('error', __("You're not allowed to do that!"));
|
||||
redirect('dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Upload QSO to webADIF
|
||||
* When called from the url wavelog/webadif/upload, the function loops through all station_id's with a webADIF
|
||||
|
||||
Reference in New Issue
Block a user