Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit a85b46b

Browse files
committed
typo
1 parent 827078e commit a85b46b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

conference/api.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
TalkSpeaker,
2828
Ticket,
2929
)
30-
31-
DEBUG = True
32-
# Only these IPs can connect to the API
33-
ALLOWED_IPS = []
30+
from pycon.settings import MATRIX_AUTH_API_DEBUG as DEBUG
31+
from pycon.settings import MATRIX_AUTH_API_ALLOWED_IPS as ALLOWED_IPS
3432

3533

3634
# Error Codes
@@ -91,7 +89,7 @@ def wrapper(request, *args, **kwargs):
9189
# Ensure that the view is called via an HTTPS request and return a JSON error
9290
# payload if not. If DEBUG = True, it has no effect.
9391
ensure_https_in_ops = request_checker(
94-
lambda r: DEBUG or r.is_secure(), 'please user HTTPS'
92+
lambda r: DEBUG or r.is_secure(), 'please use HTTPS'
9593
)
9694

9795
# We use this instead of the bult-in decorator to return a JSON error

0 commit comments

Comments
 (0)