测试资源权限去除

master
zhengyongxing 5 years ago
parent 458aea9c2a
commit e32be1bb57

@ -247,9 +247,9 @@ class TestResourceController extends BaseController
parent::_initialize(); parent::_initialize();
$map['id'] = get_pid(); $map['id'] = get_pid();
$pro = M("promote", "tab_")->where($map)->find(); $pro = M("promote", "tab_")->where($map)->find();
if ($pro['parent_id']!=0&&!($pro['parent_id']>0&&$pro['grand_id']==0)) { // if ($pro['parent_id']!=0&&!($pro['parent_id']>0&&$pro['grand_id']==0)) {
$this->error('无权操作!'); // $this->error('无权操作!');
} // }
} }
public function index($p=0) public function index($p=0)

Loading…
Cancel
Save