怎么设置会员提交的表单信息只能看自己的,(除管理员外),现在只有改下id就能看到别的表单信息
---------------------------------------------------------------------------
public function show() {
if (!\Phpcmf\Service::M()->table($this->init['table'])
->where('id', $this->id])
->where('uid', $member.uid)->counts()) {
$this->_msg(0, dr_lang('只能查看自己的简历'), $this->uid ? '' : dr_member_url('login/index'));
}
$this->_Home_Show();
}自己弄的代码不管用
if (!\Phpcmf\Service::M()->table($this->init['table']) ->where('id', $this->id]) ->where('uid', $this->uid)->counts()) { $this->_msg(0, dr_lang('只能查看自己的简历'), $this->uid ? '' : dr_member_url('login/index')); }$id = intval(\Phpcmf\Service::L('input')->get('id')); if (!\Phpcmf\Service::M()->table($this->init['table']) ->where('id', $id) ->where('uid', $this->uid)->counts()) { $this->_msg(0, dr_lang('只能查看自己的简历'), $this->uid ? '' : dr_member_url('login/index')); }