protect DANGEROUS Functions from being called without authed user
这个提交包含在:
父节点
57a5e2ae85
当前提交
6183a9208e
共有 1 个文件被更改,包括 8 次插入 和 3 次删除
|
|
@ -8,9 +8,14 @@
|
||||||
|
|
||||||
|
|
||||||
class Welcome extends CI_Controller {
|
class Welcome extends CI_Controller {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
public function index()
|
$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'); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index() {
|
||||||
if($this->optionslib->get_option('version2_trigger') == "false") {
|
if($this->optionslib->get_option('version2_trigger') == "false") {
|
||||||
$data['page_title'] = "Welcome to Cloudlog Version 2.0";
|
$data['page_title'] = "Welcome to Cloudlog Version 2.0";
|
||||||
|
|
||||||
|
|
@ -96,4 +101,4 @@ class Welcome extends CI_Controller {
|
||||||
echo "Error claiming API Keys during Migration. See Logs for further information";
|
echo "Error claiming API Keys during Migration. See Logs for further information";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用