forked from Gitlink/forgeplus-react
pulls 权限
This commit is contained in:
parent
9d0adc0747
commit
68935245f0
|
@ -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 ? (
|
||||
|
|
Loading…
Reference in New Issue