Skip to content

Commit

Permalink
renamed Hunt.early_access_users to Hunt.testers
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 3, 2023
1 parent 9c65374 commit f643162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ class Hunt(models.Model):
help_text="Possible locations that are not the start or end",
blank=True,
)
early_access_users = models.ManyToManyField(
testers = models.ManyToManyField(
User,
related_name="early_access_users",
help_text="Users that can access this hunt before it starts",
related_name="testers",
help_text="Users that can access this hunt before it starts as well as after",
blank=True,
)
form_url = models.URLField(
Expand Down
4 changes: 2 additions & 2 deletions core/views/qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def wrapped(*args, **kwargs):
if any(
[
hunt_.started and not hunt_.ended,
request.user.has_perm("core.view_before_start"),
hunt_.early_access_users.contains(request.user),
request.user.has_perm("core.view_before_start") and not hunt_.ended,
hunt_.testers.contains(request.user),
request.user.is_superuser,
]
):
Expand Down

0 comments on commit f643162

Please sign in to comment.