better error message
parent
03b3e690e4
commit
aaedac1a28
|
@ -112,7 +112,7 @@ def get_logged_in_user():
|
|||
g.username = v.username
|
||||
|
||||
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
|
||||
abort(403, "rdrama.net is only available to visitors from the United States!")
|
||||
abort(403, "rdrama.net is only available to visitors from the United States and Europe!")
|
||||
|
||||
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue