From d8aeac1e8cfc44872f67a06d66e5479faddbb727 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 8 Feb 2012 16:15:33 +0530 Subject: [PATCH] annotation editable --- pandora/annotation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index 4fbe6a69..9a070a63 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -91,7 +91,7 @@ class Annotation(models.Model): if user.is_authenticated(): if user.get_profile().capability('canEditAnnotations') or \ self.user == user or \ - user.groups.filter(id__in=self.groups.all()).count() > 0: + user.groups.filter(id__in=self.item.groups.all()).count() > 0: return True return False