Skip to content

Commit

Permalink
getSingleMessage for anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jun 3, 2019
1 parent f3518d2 commit bcecda0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/lib/server/methods/getSingleMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ Meteor.methods({
getSingleMessage(msgId) {
check(msgId, String);

if (!Meteor.userId()) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'getSingleMessage' });
}

const msg = Messages.findOneById(msgId);

if (!msg || !msg.rid) {
Expand Down

0 comments on commit bcecda0

Please sign in to comment.