From 68935245f0ab6fa95fe821a6d16a18cc45c94a4d Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 13 Jan 2021 15:46:45 +0800 Subject: [PATCH] =?UTF-8?q?pulls=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Merge/MessageCount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js index 1e52b2f9..3e721ebc 100644 --- a/src/forge/Merge/MessageCount.js +++ b/src/forge/Merge/MessageCount.js @@ -271,9 +271,9 @@ class MessageCount extends Component { ); - const permission = projectDetail && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner"); - const userLogin = current_user && current_user.login && (pull_request && pull_request.create_user === current_user.login); - const operate = current_user && projectDetail && pr_status === 0 && (permission || userLogin); + const permission = projectDetail && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner" || projectDetail.permission === "Manager"); + const userLogin = current_user && current_user.login; + const operate = userLogin && projectDetail && pr_status === 0 && permission; return (