fix: don't show awaiting purchase page if invite codes are disabled

This commit is contained in:
trisua 2025-08-15 13:00:27 -04:00
parent a6bf547fdc
commit 45d9d3ae3b

View file

@ -88,7 +88,7 @@
(span (text "This ban is marked as permanent."))
(text "{%- endif %}")))))
; if we aren't banned, just show the page body
(text "{% elif user and user.awaiting_purchase %}")
(text "{% elif user and user.awaiting_purchase and config.security.enable_invite_codes %}")
; account waiting for payment message
(article
(main