From c8d5989676fa5a032baec63f5a41e6523bd17fb1 Mon Sep 17 00:00:00 2001 From: "D. Casu" Date: Wed, 8 Oct 2014 20:05:41 +0200 Subject: [PATCH] Fixes calendar always being unprotected SR now makes use of the "unprotected calendar" option in the advanced settings. Issue report: https://sickrage.tv/forums/forum/help-support/bug-issue-reports/8904-calendar-always-unportected --- sickbeard/webserve.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 6986236f..471d1f57 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -95,8 +95,9 @@ def authenticated(handler_class): try: if not (sickbeard.WEB_USERNAME and sickbeard.WEB_PASSWORD): return True - elif handler.request.uri.startswith('/calendar') or ( - handler.request.uri.startswith('/api') and '/api/builder' not in handler.request.uri): + elif (handler.request.uri.startswith('/api') and '/api/builder' not in handler.request.uri): + return True + elif (handler.request.uri.startswith('/calendar') and sickbeard.CALENDAR_UNPROTECTED): return True auth_hdr = handler.request.headers.get('Authorization')