diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js index 309dd98ee..fdcbb0297 100644 --- a/public/react/src/modules/paths/PathDetail/DetailCards.js +++ b/public/react/src/modules/paths/PathDetail/DetailCards.js @@ -420,7 +420,35 @@ class DetailCards extends Component{ { idsum===key&&pathCardsedittype===true?'': - this.props.detailInfoList===undefined?"":this.props.detailInfoList.allow_statistics===true? + this.props.detailInfoList===undefined?"": + this.props.current_user&&this.props.current_user.admin===true||this.props.current_user&&this.props.current_user.business===true? + + + { editbuttomtype===true?'': + this.pathCardsedit(key, item.stage_id)}> + + + } + + { + pathCardsList.length=== key+1?"":this.operations(item.down_path)}> + + + + + } + + + {key===0?"": + this.operations(item.up_path)}> + + + + } + + : + this.props.detailInfoList.allow_statistics===true? { editbuttomtype===true?'': @@ -453,7 +481,14 @@ class DetailCards extends Component{ { idsum === key && pathCardsedittype === true ? - this.props.detailInfoList===undefined?"":this.props.detailInfoList.allow_statistics===true? + this.props.detailInfoList===undefined?"": + this.props.current_user&&this.props.current_user.admin===true||this.props.current_user&&this.props.current_user.business===true? + this.delectpathCardsedit(item.stage_id)}> + + + + : + this.props.detailInfoList.allow_statistics===true? this.delectpathCardsedit(item.stage_id)}>