Commit 397778af authored by Skia's avatar Skia

Quick counter fix

parent 68517a5d
Pipeline #547 passed with stage
in 2 minutes and 23 seconds
......@@ -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"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment