diff --git a/Application/Home/Controller/TestResourceController.class.php b/Application/Home/Controller/TestResourceController.class.php index 55be6005b..e34d57fcf 100644 --- a/Application/Home/Controller/TestResourceController.class.php +++ b/Application/Home/Controller/TestResourceController.class.php @@ -246,7 +246,7 @@ class TestResourceController extends BaseController parent::_initialize(); $map['id'] = get_pid(); $pro = M("promote", "tab_")->where($map)->find(); - if ($pro['parent_id']!=0) { + if ($pro['parent_id']!=0&&!($pro['parent_id']>0&&$pro['grand_id']==0)) { $this->error('无权操作!'); } } diff --git a/Application/Home/View/default/Public/promote_base.html b/Application/Home/View/default/Public/promote_base.html index edbb370ae..55c34891c 100644 --- a/Application/Home/View/default/Public/promote_base.html +++ b/Application/Home/View/default/Public/promote_base.html @@ -88,8 +88,8 @@ - - + 0&&$loginer['grand_id']==0) ):?> + - +