Skip to content
Snippets Groups Projects
Commit 82da8e95 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #5604 from RocketChat/fix-roles-not-being-respected-user-creation

Fix the roles not being respected on user creation
parents c79c04ee e78c5da3
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ Template.userEdit.onCreated ->
userData.requirePasswordChange = this.$("#changePassword:checked").length > 0
userData.joinDefaultChannels = this.$("#joinDefaultChannels:checked").length > 0
userData.sendWelcomeEmail = this.$("#sendWelcomeEmail:checked").length > 0
userData.role = this.$("#role").val()
userData.roles = [this.$("#role").val()]
return userData
@validate = =>
......
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