ismanager

This commit is contained in:
caishi 2020-10-19 11:45:58 +08:00
parent a5657390fe
commit ded423ee2c
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class Detail extends Component {
this.setState({ this.setState({
projectDetail: result.data, projectDetail: result.data,
project_id: result.data.project_id, 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", isReporter: result.data.permission && result.data.permission === "Reporter",
isDeveloper: result.data.permission && result.data.permission === "Developer", isDeveloper: result.data.permission && result.data.permission === "Developer",
http_url: result.data.clone_url, http_url: result.data.clone_url,