diff --git a/pandora/user/views.py b/pandora/user/views.py index 182a602b..83432bf1 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -362,7 +362,7 @@ def editUser(request, data): response = json_response(status=403, text='email already in use') return render_to_json_response(response) user.email = data['email'] - if 'level' in data and request.user.profile.get_level() == 'admin': + if 'level' in data: profile.set_level(data['level']) if 'notes' in data: profile.notes = data['notes'] diff --git a/static/js/listDialog.js b/static/js/listDialog.js index 7df404e5..f177bca9 100644 --- a/static/js/listDialog.js +++ b/static/js/listDialog.js @@ -444,7 +444,7 @@ pandora.ui.listGeneralPanel = function(listData) { return listData.status == 'private' ? 160 : 136; } function getDescriptionTop() { - return listData.status == 'private' ? 112 : 136; + return listData.status == 'private' ? 64 : 88; } function getSubscribersAction() { return listData.status == 'private' ? 'hide' : 'show'; diff --git a/static/js/usersDialog.js b/static/js/usersDialog.js index bf997c64..4455d547 100644 --- a/static/js/usersDialog.js +++ b/static/js/usersDialog.js @@ -680,27 +680,19 @@ pandora.ui.usersDialog = function() { } }), - pandora.user.level == 'admin' - ? Ox.Select({ - id: 'level', - items: pandora.site.userLevels.slice(1).map(function(level) { - return { - id: level, - title: Ox.toTitleCase(level) - }; - }), - label: Ox._('Level'), - labelWidth: 80, - value: user.level, - width: formWidth - 16 - }) : Ox.Input({ - disabled: true, - id: 'level', - label: Ox._('Level'), - labelWidth: 80, - value: Ox.toTitleCase(user.level), - width: formWidth - 16 + Ox.Select({ + id: 'level', + items: pandora.site.userLevels.slice(1).map(function(level) { + return { + id: level, + title: Ox.toTitleCase(level) + }; }), + label: Ox._('Level'), + labelWidth: 80, + value: user.level, + width: formWidth - 16 + }), Ox.Checkbox({ id: 'newsletter', label: Ox._('Newsletter'),