mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
Tiny fix in the counter
This commit is contained in:
parent
b347b87433
commit
52a0913993
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user