[Hardware] Allowed all user roles to view
这个提交包含在:
父节点
5eac022fae
当前提交
aad1823e15
共有 1 个文件被更改,包括 13 次插入 和 2 次删除
|
|
@ -6,8 +6,13 @@
|
||||||
{
|
{
|
||||||
// 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'); }
|
|
||||||
|
|
||||||
|
// Check if users logged in
|
||||||
|
|
||||||
|
if($this->user_model->validate_session() == 0) {
|
||||||
|
// user is not logged in
|
||||||
|
redirect('user/login');
|
||||||
|
}
|
||||||
// load the view
|
// load the view
|
||||||
$data['page_title'] = "Hardware Interfaces";
|
$data['page_title'] = "Hardware Interfaces";
|
||||||
|
|
||||||
|
|
@ -20,7 +25,13 @@
|
||||||
|
|
||||||
// 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'); }
|
|
||||||
|
// Check if users logged in
|
||||||
|
|
||||||
|
if($this->user_model->validate_session() == 0) {
|
||||||
|
// user is not logged in
|
||||||
|
redirect('user/login');
|
||||||
|
}
|
||||||
|
|
||||||
$this->load->model('cat');
|
$this->load->model('cat');
|
||||||
$query = $this->cat->status();
|
$query = $this->cat->status();
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用