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;
|
||||
const { current_user, projectDetail } = this.props;
|
||||
|
||||
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;
|
||||
|
||||
const menu = (
|
||||
<Menu onClick={(e) => this.getOption(e)}>
|
||||
|
|
Loading…
Reference in New Issue