FIX: save edit_history_public

This commit is contained in:
Ben Lubar 2014-07-30 12:03:22 -05:00
parent aeb0ea1f25
commit 4e80a4d091

View File

@ -213,6 +213,10 @@ Discourse.User = Discourse.Model.extend({
data[s + '_category_ids'] = cats;
});
if (!Discourse.SiteSettings.edit_history_available_to_public) {
data['edit_history_public'] = this.get('edit_history_public');
}
return Discourse.ajax("/users/" + this.get('username_lower'), {
data: data,
type: 'PUT'