Merge pull request #2609 from BenLubar/benlubar-edit-history-public-2

FIX: save edit_history_public
This commit is contained in:
Robin Ward 2014-07-30 13:20:32 -04:00
commit 87ca49e26e
1 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,10 @@ Discourse.User = Discourse.Model.extend({
data[s + '_category_ids'] = cats; 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'), { return Discourse.ajax("/users/" + this.get('username_lower'), {
data: data, data: data,
type: 'PUT' type: 'PUT'