From db26bf3f3068f08a9249ccf57999ce2761598bd6 Mon Sep 17 00:00:00 2001 From: hdm Date: Tue, 25 Oct 2022 11:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=88=90=E5=91=98=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/project/controller/Api.php | 2 +- app/project/controller/Index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/project/controller/Api.php b/app/project/controller/Api.php index 7325cbc..033c46d 100644 --- a/app/project/controller/Api.php +++ b/app/project/controller/Api.php @@ -526,7 +526,7 @@ class Api extends BaseController $project_ids = Db::name('ProjectUser')->where(['uid' => $this->uid, 'delete_time' => 0])->column('project_id'); $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; - $auth = isAuth($this->uid,'contract_admin'); + $auth = isAuth($this->uid,'project_admin'); $where = []; $where[] = ['delete_time', '=', 0]; if(isset($param['keywords'])){ diff --git a/app/project/controller/Index.php b/app/project/controller/Index.php index 518074c..05df692 100644 --- a/app/project/controller/Index.php +++ b/app/project/controller/Index.php @@ -41,7 +41,7 @@ class Index extends BaseController $project_ids = Db::name('ProjectUser')->where(['uid' => $this->uid, 'delete_time' => 0])->column('project_id'); $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; - $auth = isAuth($this->uid,'contract_admin'); + $auth = isAuth($this->uid,'project_admin'); $where = []; $where[] = ['delete_time', '=', 0]; if($auth == 0){ @@ -327,7 +327,7 @@ class Index extends BaseController if ($detail['admin_id'] == $this->uid) { $role = 2; //创建人 } - $auth = isAuth($this->uid,'contract_admin'); + $auth = isAuth($this->uid,'project_admin'); if ($auth == 1) { $role = 3; //项目管理员 }