Skip to content
Snippets Groups Projects
Commit 42a8d4bc authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Removed commented code

parent 502b80d3
No related branches found
No related tags found
No related merge requests found
......@@ -29,15 +29,5 @@ Meteor.methods
return username
# Limit setting username once per minute
# DDPRateLimiter.addRule
# type: 'method'
# name: 'setUsername'
# userId: (userId) ->
# return true
# # Administrators have permission to change others usernames, so don't limit those
# return not RocketChat.authz.hasPermission( userId, 'edit-other-user-info')
# , 1, 1000
RocketChat.RateLimiter.limitMethod 'setUsername', 1, 1000,
userId: (userId) -> return true
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