mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Many right fix on counters
This commit is contained in:
1 parent
114272df2f
commit
72685618a6
3 files changed
+9
-7
No files matched your search
+1
-1
@@ -161,7 +161,7 @@ class Counter(models.Model):
|
||||
return user.is_in_group(settings.SITH_GROUP_COUNTER_ADMIN_ID)
|
||||
|
||||
def can_be_viewed_by(self, user):
|
||||
if self.type == "BAR" or self.type == "EBOUTIC":
|
||||
if self.type == "BAR":
|
||||
return True
|
||||
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user in self.sellers.all()
|
||||
|
||||
|
||||
Reference in new issue
Block a user