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

Removing line from debug testing

parent 7301b86c
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,6 @@ Meteor.methods({ ...@@ -24,7 +24,6 @@ Meteor.methods({
}); });
} }
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 hasPermission = RocketChat.authz.hasPermission(Meteor.userId(), 'delete-message', originalMessage.rid);
const deleteAllowed = RocketChat.settings.get('Message_AllowDeleting'); const deleteAllowed = RocketChat.settings.get('Message_AllowDeleting');
const deleteOwn = originalMessage && originalMessage.u && originalMessage.u._id === Meteor.userId(); const deleteOwn = originalMessage && originalMessage.u && originalMessage.u._id === Meteor.userId();
......
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