From 52a09139931251572c06f6dd62ca69140c4b6c5a Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 3 Jan 2017 14:29:44 +0100 Subject: [PATCH] Tiny fix in the counter --- counter/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counter/models.py b/counter/models.py index 38a1acfe..54846695 100644 --- a/counter/models.py +++ b/counter/models.py @@ -163,7 +163,7 @@ class Counter(models.Model): def can_be_viewed_by(self, user): if self.type == "BAR" or self.type == "EBOUTIC": return True - return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user in self.sellers + return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user in self.sellers.all() def gen_token(self): """Generate a new token for this counter"""