From 9eb36bd81f875d26146ef55b6714b271a3449149 Mon Sep 17 00:00:00 2001 From: zyx Date: Tue, 22 Oct 2019 10:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E9=95=BF=E8=B4=A6=E5=8F=B7=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/TestResourceController.class.php | 2 +- Application/Home/View/default/Public/promote_base.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) ):?> + - +