[Search] Search is now available for public via enabling via Global Options
This change removes the need for the option in cloudlog.php config and makes public search enabled via the frontend interface
这个提交包含在:
父节点
18f8933d7a
当前提交
855410af6b
共有 2 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -8,7 +8,7 @@ class Search extends CI_Controller {
|
|||
parent::__construct();
|
||||
|
||||
$this->load->helper(array('form', 'url'));
|
||||
if($this->config->item('public_search') != TRUE) {
|
||||
if($this->optionslib->get_option('global_search') != "true") {
|
||||
$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'); }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@
|
|||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<?php if($this->config->item('public_search') == TRUE || $this->session->userdata('user_type') >= 2) { ?>
|
||||
<?php if($this->optionslib->get_option('global_search') != "false" || $this->session->userdata('user_type') >= 2) { ?>
|
||||
<form method="post" action="<?php echo site_url('search'); ?>" class="form-inline">
|
||||
<input class="form-control mr-sm-2" id="nav-bar-search-input" type="search" name="callsign" placeholder="Search Callsign" aria-label="Search">
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用