pulls权限

This commit is contained in:
caishi 2021-01-13 15:47:10 +08:00
parent c746e9e634
commit 1df2639cd5
1 changed files with 3 additions and 3 deletions

View File

@ -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)}>