Skip to content

Commit

Permalink
Add some debug prints to qr
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Aug 26, 2024
1 parent d80a20c commit 8ce09b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/views/qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def qr(request, key):
context = dict(first=False)
codes = QrCode.code_pks(request.user.current_team)
qr_code: QrCode | None = QrCode.objects.filter(key=key).first()
print(type(request.user))
print(dir(request.user))
if request.user.can_debug:
return redirect(qr_code.get_admin_url())
context["qr_code"]: QrCode
Expand Down

0 comments on commit 8ce09b1

Please sign in to comment.