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.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
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;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{data ? (
|
{data ? (
|
||||||
|
|
Loading…
Reference in New Issue