forked from Gitlink/forgeplus-react
pulls权限
This commit is contained in:
parent
c746e9e634
commit
1df2639cd5
|
@ -256,9 +256,9 @@ class MessageCount extends Component {
|
||||||
} = this.state;
|
} = this.state;
|
||||||
const { current_user, projectDetail } = this.props;
|
const { current_user, projectDetail } = this.props;
|
||||||
|
|
||||||
const permission = projectDetail && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner");
|
const permission = projectDetail && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner" || projectDetail.permission === "Manager");
|
||||||
const userLogin = current_user && current_user.login && (pull_request && pull_request.create_user === current_user.login);
|
const userLogin = current_user && current_user.login;
|
||||||
const operate = current_user && projectDetail && pr_status === 0 && (permission || userLogin);
|
const operate = userLogin && projectDetail && pr_status === 0 && permission;
|
||||||
|
|
||||||
const menu = (
|
const menu = (
|
||||||
<Menu onClick={(e) => this.getOption(e)}>
|
<Menu onClick={(e) => this.getOption(e)}>
|
||||||
|
|
Loading…
Reference in New Issue