admin: Added realm option to prevent users from changing their email.

A realm option to prevent users from changing their email address is added.
Fixes #3777.
This commit is contained in:
Raghav Jajodia
2017-03-04 11:09:45 +05:30
committed by Tim Abbott
parent d25bfb88d3
commit cd2d798498
14 changed files with 149 additions and 3 deletions

View File

@@ -583,6 +583,10 @@ function _setup_page() {
});
});
if (page_params.realm_email_changes_disabled) {
$('#change_email').hide();
}
$('#change_email_button').on('click', function (e) {
e.preventDefault();
e.stopPropagation();