summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_comment.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-17 12:27:03 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-17 12:27:03 -0400
commit0fe75cb7826944a3352705d5e78eba1d12cc213a (patch)
treee7391d4540f42c9dea23631217b8823db43d632e /webapp/components/rhs_comment.jsx
parent5580c28e54015b78893c33cc3bf41da75712c4cb (diff)
downloadchat-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.jsx3
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'