Skip to content
Snippets Groups Projects
Unverified Commit 066ced77 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fix adding user to room

parent 05f45f65
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ Meteor.methods
throw new Meteor.Error 'error-not-allowed', 'Not allowed', { method: 'addUserToRoom' }
# if room.username isnt Meteor.user().username and room.t is 'c'
if RocketChat.authz.hasPermission(fromId, 'add-user-to-room', room._id)
if not RocketChat.authz.hasPermission(fromId, 'add-user-to-room', room._id)
throw new Meteor.Error 'error-not-allowed', 'Not allowed', { method: 'addUserToRoom' }
if room.t is 'd'
......
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