diff --git a/modules/issue_tracker/jsx/IssueForm.js b/modules/issue_tracker/jsx/IssueForm.js index 82f48d9ce61..90b7a972617 100644 --- a/modules/issue_tracker/jsx/IssueForm.js +++ b/modules/issue_tracker/jsx/IssueForm.js @@ -153,6 +153,7 @@ class IssueForm extends Component { baseURL={this.props.baseURL} attachments={this.state.issueData['attachments']} userHasPermission={this.props.userHasPermission} + whoami={this.state.issueData.whoami} /> ); @@ -570,7 +571,6 @@ IssueForm.propTypes = { baseURL: PropTypes.string.isRequired, action: PropTypes.string.isRequired, issue: PropTypes.string.isRequired, - whoami: PropTypes.string.isRequired, }; export default IssueForm; diff --git a/modules/issue_tracker/jsx/attachments/attachmentsList.js b/modules/issue_tracker/jsx/attachments/attachmentsList.js index f33652b573f..3b350d3d414 100644 --- a/modules/issue_tracker/jsx/attachments/attachmentsList.js +++ b/modules/issue_tracker/jsx/attachments/attachmentsList.js @@ -100,7 +100,7 @@ class AttachmentsList extends Component { */ displayAttachmentOptions(deleteData, item) { if (this.props.userHasPermission - || this.state.attachments.whoami === item.user) { + || this.props.whoami === item.user) { return (