settings: Fix erroneous meta.loaded check for name/email change.

That check is for the settings_org.js page, which is of course not
actually the page that these fields are on.
This commit is contained in:
Tim Abbott 2018-03-02 12:34:59 -08:00
parent 9b8c541a74
commit 63db3e0b3d
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ exports.reset_realm_default_language = function () {
exports.toggle_name_change_display = function () {
// If user is an org admin, return. Cause org admin can change
// name or email even name changes or email changes are disabled in org.
if (!meta.loaded || page_params.is_admin) {
if (page_params.is_admin) {
return;
}
@ -88,7 +88,7 @@ exports.toggle_name_change_display = function () {
};
exports.toggle_email_change_display = function () {
if (!meta.loaded || page_params.is_admin) {
if (page_params.is_admin) {
return;
}