routes/home: handle missing groups

This commit is contained in:
xeals 2022-09-03 15:29:24 +10:00
parent 860dbe6032
commit c3831e9efe
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -29,7 +29,7 @@ def register(auth: OIDCAuthentication, auth_provider: str) -> Blueprint:
Renders the home route. Renders the home route.
""" """
user_session = UserSession(flask.session) user_session = UserSession(flask.session)
groups: List[str] = user_session.userinfo["groups"] groups: List[str] = user_session.userinfo.get("groups") or []
config: Config = current_config() config: Config = current_config()
name = config.core.name name = config.core.name