Skip to content
Snippets Groups Projects
Commit 8583799e authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

LDAP: Do not allow username changes; Closes #1982; Closes #2029

parent 1e8a98b9
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
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