From e75a45c00f642e3d47d3e2208a8841be98b231a6 Mon Sep 17 00:00:00 2001 From: ayleph Date: Sun, 6 Dec 2015 14:54:32 -0500 Subject: [PATCH] Fix issue 5367 Edit view updates This commit fixes issue 5367 by updating the edit view to be compatible with recent db migrations. Signed-off-by: Jessica Tallon --- mediagoblin/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 45cc0fb9..00c61157 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -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, -- 2.25.1