pulls 权限

This commit is contained in:
caishi 2021-01-13 15:46:45 +08:00
parent 9d0adc0747
commit 68935245f0
1 changed files with 3 additions and 3 deletions

View File

@ -271,9 +271,9 @@ class MessageCount extends Component {
</Menu.Item>
</Menu>
);
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;
return (
<div>
{data ? (