diff --git a/tailbone/views/common.py b/tailbone/views/common.py index 3cfaffa6..e5710f2b 100644 --- a/tailbone/views/common.py +++ b/tailbone/views/common.py @@ -69,6 +69,10 @@ class CommonView(View): """ Home page view. """ + if not mobile and not self.request.user: + if self.rattail_config.getbool('tailbone', 'login_is_home', default=True): + raise self.redirect(self.request.route_url('login')) + image_url = self.rattail_config.get( 'tailbone', 'main_image_url', default=self.request.static_url('tailbone:static/img/home_logo.png'))