diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-17 12:27:03 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-17 12:27:03 -0400 |
commit | 0fe75cb7826944a3352705d5e78eba1d12cc213a (patch) | |
tree | e7391d4540f42c9dea23631217b8823db43d632e /webapp/components/rhs_comment.jsx | |
parent | 5580c28e54015b78893c33cc3bf41da75712c4cb (diff) | |
download | chat-0fe75cb7826944a3352705d5e78eba1d12cc213a.tar.gz chat-0fe75cb7826944a3352705d5e78eba1d12cc213a.tar.bz2 chat-0fe75cb7826944a3352705d5e78eba1d12cc213a.zip |
PLT-1909 Removed the ability to edit system posts (#3013)
* Removed the ability to edit system posts
* Added increased timeout to SpinnerButton unit tests
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r-- | webapp/components/rhs_comment.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 5097e0573..c4b62efcf 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -85,6 +85,7 @@ export default class RhsComment extends React.Component { const isOwner = this.props.currentUser.id === post.user_id; var isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser(); + const isSystemMessage = post.type.startsWith(Constants.SYSTEM_MESSAGE_PREFIX); var dropdownContents = []; @@ -107,7 +108,7 @@ export default class RhsComment extends React.Component { ); } - if (isOwner) { + if (isOwner && !isSystemMessage) { dropdownContents.push( <li role='presentation' |