FIX: edit history user setting was appearing

This commit is contained in:
Jeff Atwood 2014-09-04 13:47:05 -07:00
parent 53af2abb20
commit bbbca820d8
2 changed files with 2 additions and 2 deletions

View file

@ -213,7 +213,7 @@ Discourse.User = Discourse.Model.extend({
data[s + '_category_ids'] = cats;
});
if (!Discourse.SiteSettings.edit_history_available_to_public) {
if (!Discourse.SiteSettings.edit_history_visible_to_public) {
data['edit_history_public'] = this.get('edit_history_public');
}

View file

@ -167,7 +167,7 @@
{{preference-checkbox labelKey="user.enable_quoting" checked=enable_quoting}}
{{preference-checkbox labelKey="user.dynamic_favicon" checked=dynamic_favicon}}
{{preference-checkbox labelKey="user.disable_jump_reply" checked=disable_jump_reply}}
{{#unless Discourse.SiteSettings.edit_history_available_to_public}}
{{#unless Discourse.SiteSettings.edit_history_visible_to_public}}
{{preference-checkbox labelKey="user.edit_history_public" checked=edit_history_public}}
{{/unless}}
{{plugin-outlet "user_custom_preferences"}}