aboutsummaryrefslogtreecommitdiff
path: root/newspipe/web/views/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe/web/views/views.py')
-rw-r--r--newspipe/web/views/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/newspipe/web/views/views.py b/newspipe/web/views/views.py
index e3a5091f..346954e1 100644
--- a/newspipe/web/views/views.py
+++ b/newspipe/web/views/views.py
@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
@current_app.errorhandler(401)
def authentication_required(error):
- if API_ROOT in request.url:
+ if application.conf["API_ROOT"] in request.url:
return error
flash(gettext("Authentication required."), "info")
return redirect(url_for("login"))
bgstack15