diff --git a/src/rockstor/storageadmin/views/home.py b/src/rockstor/storageadmin/views/home.py index db932a516..3a9fe77ca 100644 --- a/src/rockstor/storageadmin/views/home.py +++ b/src/rockstor/storageadmin/views/home.py @@ -1,5 +1,5 @@ """ -Copyright (c) 2012-2020 RockStor, Inc. +Copyright (c) 2012-2023 RockStor, Inc. This file is part of RockStor. RockStor is free software; you can redistribute it and/or modify @@ -13,7 +13,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License -along with this program. If not, see . +along with this program. If not, see . """ from django.shortcuts import render @@ -28,6 +28,7 @@ logger = logging.getLogger(__name__) + def login_page(request): return render(request, "login.html") @@ -65,7 +66,7 @@ def home(request): "update_channel": update_channel, } logger.debug("context={}".format(context)) - if request.user.is_authenticated(): + if request.user.is_authenticated: logger.debug("ABOUT TO RENDER INDEX") return render(request, "index.html", context) else: