Tiny fix in the counter

This commit is contained in:
Skia 2017-01-03 14:29:44 +01:00
parent b347b87433
commit 52a0913993

View File

@ -163,7 +163,7 @@ class Counter(models.Model):
def can_be_viewed_by(self, user): def can_be_viewed_by(self, user):
if self.type == "BAR" or self.type == "EBOUTIC": if self.type == "BAR" or self.type == "EBOUTIC":
return True 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): def gen_token(self):
"""Generate a new token for this counter""" """Generate a new token for this counter"""