Fix issue 5367 Edit view updates
authorayleph <ayleph@thisshitistemp.comm>
Sun, 6 Dec 2015 19:54:32 +0000 (14:54 -0500)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 6 Jan 2016 16:11:52 +0000 (16:11 +0000)
This commit fixes issue 5367 by updating the edit view to be compatible
with recent db migrations.

Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
mediagoblin/edit/views.py

index 45cc0fb94f42dbef8b395eda9dbd379ecacf8da1..00c611573dcf020d41b3e243961aa2385f2af822 100644 (file)
@@ -91,7 +91,7 @@ def edit_media(request, media):
             return redirect_obj(request, media)
 
     if request.user.has_privilege(u'admin') \
-            and media.uploader != request.user.id \
+            and media.actor != request.user.id \
             and request.method != 'POST':
         messages.add_message(
             request, messages.WARNING,