forked from Gitlink/forgeplus-react
ismanager
This commit is contained in:
parent
a5657390fe
commit
ded423ee2c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue