Skip to content

Commit

Permalink
Fix editing others messages (#7200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored and geekgonecrazy committed Jun 8, 2017
1 parent 214a7e2 commit 78419f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-ui/client/lib/chatMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ this.ChatMessages = class ChatMessages {
const editAllowed = RocketChat.settings.get('Message_AllowEditing');
const editOwn = message && message.u && message.u._id === Meteor.userId();

if (!hasPermission && !editAllowed || !editOwn) { return; }
if (!hasPermission && (!editAllowed || !editOwn)) { return; }
if (element.classList.contains('system')) { return; }

const blockEditInMinutes = RocketChat.settings.get('Message_AllowEditing_BlockEditInMinutes');
Expand Down

0 comments on commit 78419f7

Please sign in to comment.