Compare commits

..

3 Commits

Author SHA1 Message Date
c3831e9efe
routes/home: handle missing groups 2022-09-03 15:29:54 +10:00
860dbe6032
docs: add readme 2022-09-03 15:29:54 +10:00
aa86f5de48
routes/home: configure brand name 2022-09-03 15:29:51 +10:00

View File

@ -29,7 +29,7 @@ def register(auth: OIDCAuthentication, auth_provider: str) -> Blueprint:
Renders the home route.
"""
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()
name = config.core.name