diff --git a/pandora/item/views.py b/pandora/item/views.py index 701c50bf..d0203628 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -438,6 +438,10 @@ def edit(request): if 'rightslevel' in data: item.level = data['rightslevel'] del data['rightslevel'] + if 'user' in data: + if request.user.get_profile().get_level() in ('admin', 'staff'): + item.user = models.User.objects.get(username=data['user']) + del data['user'] r = item.edit(data) if r: r.wait() diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 4cbaec41..d9fbfb09 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -268,7 +268,7 @@ pandora.ui.infoView = function(data) { html.push( formatKey(key) + formatValue(data[key], key) - ) + ); } }); $('