From ded423ee2ca1cb7a5c1648433b7fbe1b1478b9dc Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 19 Oct 2020 11:45:58 +0800 Subject: [PATCH] ismanager --- src/forge/Main/Detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index fe23ba96..7ee916f7 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -267,7 +267,7 @@ class Detail extends Component { this.setState({ projectDetail: result.data, project_id: result.data.project_id, - isManager: result.data.permission && result.data.permission === "Manager", + isManager: result.data.permission && (result.data.permission === "Manager" || result.data.permission === "Admin" || result.data.permission === "Owner"), isReporter: result.data.permission && result.data.permission === "Reporter", isDeveloper: result.data.permission && result.data.permission === "Developer", http_url: result.data.clone_url,