aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard
diff options
context:
space:
mode:
authorAdam Hassick <ahassick@iol.unh.edu>2021-01-04 20:47:35 +0000
committerAdam Hassick <ahassick@iol.unh.edu>2021-01-04 16:10:08 -0500
commitbf822708949ad2e57b3966ad2bf485588fe4b29d (patch)
treeeadee2b772d9c781644e2ed7bb424c6b016d8b97 /src/dashboard
parent5d6508e277e2c373d8e2cde320a2537f42c8189d (diff)
Fix issue where users are redirected to Jira login in LFID mode in certain cases
Change-Id: If8a82d3a2628a7f55f902d321388be2419524c8b Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: Ieb9de968514b88a8c450967466d06c9860427d83
Diffstat (limited to 'src/dashboard')
-rw-r--r--src/dashboard/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dashboard/views.py b/src/dashboard/views.py
index 7c85250..ff26c64 100644
--- a/src/dashboard/views.py
+++ b/src/dashboard/views.py
@@ -22,7 +22,7 @@ from booking.models import Booking
from resource_inventory.models import Image, ResourceProfile, ResourceQuery
from workflow.workflow_manager import ManagerTracker
-import os
+from laas_dashboard import settings
def lab_list_view(request):
@@ -80,7 +80,7 @@ def landing_view(request):
else:
bookings = None
- LFID = True if os.environ['AUTH_SETTING'] == 'LFID' else False
+ LFID = True if settings.AUTH_SETTING == 'LFID' else False
return render(
request,
'dashboard/landing.html',