Skip to content
Snippets Groups Projects
Unverified Commit 5c9a8039 authored by Philip Hutchins's avatar Philip Hutchins
Browse files

Fixing tabs and removing comment

parent 6ebaed71
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ Meteor.methods({
action: 'Delete_message'
});
}
const deleteAny = RocketChat.authz.hasPermission(Meteor.userId(), 'delete-any-message', originalMessage.rid);
const deleteAny = RocketChat.authz.hasPermission(Meteor.userId(), 'delete-any-message', originalMessage.rid);
return RocketChat.deleteMessage(originalMessage, Meteor.user());
const hasPermission = RocketChat.authz.hasPermission(Meteor.userId(), 'delete-message', originalMessage.rid);
const deleteAllowed = RocketChat.settings.get('Message_AllowDeleting');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment