diff --git a/daemon_get_login.py b/daemon_get_login.py index f0133986c..14a396d52 100644 --- a/daemon_get_login.py +++ b/daemon_get_login.py @@ -26,6 +26,9 @@ def redirect_to_login_screen(self, calling_domain: str, path: str, news_instance: bool, fitness: {}) -> bool: """Redirects to the login screen if necessary """ + if authorized: + return False + divert_to_login_screen = False non_login_paths = ('/media/', '/ontologies/', '/data/', '/sharefiles/', '/statuses/', '/emoji/', '/tags/', '/tagmaps/', @@ -43,7 +46,7 @@ def redirect_to_login_screen(self, calling_domain: str, path: str, if string_ends_with(path, possible_endings): divert_to_login_screen = False - if divert_to_login_screen and not authorized: + if divert_to_login_screen: divert_path = '/login' if news_instance: # for news instances if not logged in then show the diff --git a/webapp_pwa.py b/webapp_pwa.py index 081404d5b..f371a6212 100644 --- a/webapp_pwa.py +++ b/webapp_pwa.py @@ -1,4 +1,4 @@ -__filename__ = "pwa.py" +__filename__ = "webapp_pwa.py" __author__ = "Bob Mottram" __license__ = "AGPL3+" __version__ = "1.7.0"