From bf822708949ad2e57b3966ad2bf485588fe4b29d Mon Sep 17 00:00:00 2001 From: Adam Hassick Date: Mon, 4 Jan 2021 20:47:35 +0000 Subject: Fix issue where users are redirected to Jira login in LFID mode in certain cases Change-Id: If8a82d3a2628a7f55f902d321388be2419524c8b Signed-off-by: Adam Hassick Change-Id: Ieb9de968514b88a8c450967466d06c9860427d83 --- src/dashboard/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dashboard/views.py') 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', -- cgit 1.2.3-korg