Skip to content

Commit

Permalink
LDAP: Do not allow username changes; Closes #1982; Closes #2029
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Feb 10, 2016
1 parent 1e8a98b commit 8583799
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Template.accountProfile.helpers
return Meteor.user().emails?[0]?.address

allowUsernameChange: ->
return RocketChat.settings.get("Accounts_AllowUsernameChange")
return RocketChat.settings.get("Accounts_AllowUsernameChange") and RocketChat.settings.get("LDAP_Enable") isnt true

allowEmailChange: ->
return RocketChat.settings.get("Accounts_AllowEmailChange")
Expand Down

0 comments on commit 8583799

Please sign in to comment.