Skip to content
Snippets Groups Projects
Commit 3eab2b2c authored by Rafael Caferati's avatar Rafael Caferati
Browse files

fixed addUserToRoom duplicated conditional

parent 34987933
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ Meteor.methods
room = ChatRoom.findOne data.rid
if room.username isnt Meteor.user().username and room.t is 'c'
# if room.username isnt Meteor.user().username and room.t is 'c'
if room.u.username isnt Meteor.user().username and room.t is 'c'
throw new Meteor.Error 403, '[methods] addUserToRoom -> Not allowed'
......
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