mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +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):
|
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
|
||||||
sub = request.user
|
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 sub in self.sellers
|
|
||||||
|
|
||||||
def gen_token(self):
|
def gen_token(self):
|
||||||
"""Generate a new token for this counter"""
|
"""Generate a new token for this counter"""
|
||||||
|
Loading…
Reference in New Issue
Block a user