Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/temp' into temp
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 3, 2023
2 parents f643162 + e47586a commit d65e2fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/views/qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ def wrapped(*args, **kwargs):

def during_hunt(f):
"""
Decorator for views that checks that the hunt has started.
User can access the view if they meet ANY of the following conditions:
- They have the view_before_start permission
- The hunt has started
- They are on the early access list for that hunt
- They are a superuser
"""
Decorator for views that checks that the hunt has started.
User can access the view if they meet ANY of the following conditions:
- They have the view_before_start permission
- The hunt has started
- They are on the early access list for that hunt
- They are a superuser
"""

@wraps(f)
def wrapped(*args, **kwargs):
hunt_ = Hunt.current_hunt()

request = args[0]
if any(
[
Expand Down

0 comments on commit d65e2fd

Please sign in to comment.