取消信息编辑权限判断,会写入session导致CDN分发错误

hotfix/远程访问多媒体中心
尹诚诚 7 years ago
parent 6f4738cf63
commit 2db8520785

@ -20,8 +20,6 @@ class Information extends CI_Controller {
$this->load->model('Infoauthors_model');
$this->load->model('InfoSMS_model');
$this->load->library('Amplib'); //加载AMP处理类
$this->load->library('Accesscheck');
$this->accesscheck->check_access();
}
public function index() {
@ -144,12 +142,7 @@ class Information extends CI_Controller {
}
//查询结构列表信息
//$data['informationList'] = $this->Information_model->StructureList($rootStructure_ID);
$data['informationList'] = $this->accesscheck->get_info_structure($rootStructure_ID);
if (!$data['informationList']) {
redirect(site_url('Login/refuse'));
}
$data['is_writeable'] = $this->accesscheck->get_edit_type($Structure->is_path);
$data['informationList'] = $this->Information_model->StructureList($rootStructure_ID);
//增加一项,属于这个区域,但是结构数据层次不准确的也要列出来
//todo:

@ -1043,7 +1043,7 @@
<span id="mobile_friendly_status"></span>
</p>
<div class="btn-group col-xs-24 nopadding pull-right <?php if ($is_writeable == 0) echo 'hide'; ?>">
<div class="btn-group col-xs-24 nopadding pull-right ">
<a href="javascript:void(0);" class="btn btn-primary col-xs-19" onclick="editor.sync();if(information_check()!=false){submitForm('form_information_edit');}">保存修改</a>
<button class="btn dropdown-toggle btn-primary col-xs-5" data-toggle="dropdown">
<span class="caret"></span>

Loading…
Cancel
Save