routes/home: handle missing groups
This commit is contained in:
parent
860dbe6032
commit
c3831e9efe
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user