diff --git a/public_html/js/Presenters/UserAccountSettingsPresenter.js b/public_html/js/Presenters/UserAccountSettingsPresenter.js index febc9b24..a3d5ebfd 100644 --- a/public_html/js/Presenters/UserAccountSettingsPresenter.js +++ b/public_html/js/Presenters/UserAccountSettingsPresenter.js @@ -106,7 +106,7 @@ App.Presenters.UserAccountSettingsPresenter = function( formData.passwordConfirmation = $el.find('[name=passwordConfirmation]').val(); } if (privileges.canChangeAccessRank) { - formData.accessRank = $el.find('[name=access-rank]').val(); + formData.accessRank = $el.find('[name=access-rank]:checked').val(); } if (!validateAccountSettingsFormData(formData)) { diff --git a/public_html/templates/account-settings.tpl b/public_html/templates/account-settings.tpl index 73c9860b..8d259d5b 100644 --- a/public_html/templates/account-settings.tpl +++ b/public_html/templates/account-settings.tpl @@ -71,20 +71,22 @@
- + <% + var accessRanks = { + anonymous: 'Anonymous', + regularUser: 'Regular user', + powerUser: 'Power user', + moderator: 'Moderator', + administrator: 'Administrator' + }; + %> + <% _.each(accessRanks, function(v, k) { %> + > + +
+ <% }) %>
<% } %>