mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Quick counter fix
This commit is contained in:
parent
68517a5d33
commit
397778af1c
@ -163,8 +163,7 @@ class Counter(models.Model):
|
||||
def can_be_viewed_by(self, user):
|
||||
if self.type == "BAR" or self.type == "EBOUTIC":
|
||||
return True
|
||||
sub = request.user
|
||||
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or sub in self.sellers
|
||||
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user in self.sellers
|
||||
|
||||
def gen_token(self):
|
||||
"""Generate a new token for this counter"""
|
||||
|
Loading…
Reference in New Issue
Block a user