From cdb35b9717756c13cbf89409b2d1bb125d283784 Mon Sep 17 00:00:00 2001 From: Aaron Williamson Date: Thu, 30 Aug 2012 17:42:04 -0400 Subject: [PATCH] Reference collection creator through already-existing collection_item's foreign key --- mediagoblin/user_pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index ee366c10..187bba96 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -376,7 +376,7 @@ def collection_item_confirm_remove(request, collection_item): collection=collection.slug) if ((request.user.is_admin and - request.user._id != collection.creator)): + request.user._id != collection_item.in_collection.creator)): messages.add_message( request, messages.WARNING, _("You are about to delete an item from another user's collection. " -- 2.25.1