| |
@@ -34,6 +34,8 @@
|
| |
def fas_user_from_oidc():
|
| |
if "oidc_cached_userdata" in flask.session:
|
| |
flask.g.fas_user = munch.Munch(**flask.session["oidc_cached_userdata"])
|
| |
+ # Edge case, avoid 'KeyError' after pagure update if a cached session is used
|
| |
+ flask.g.fas_user.can_create = flask.g.fas_user.get("can_create", False)
|
| |
elif oidc.user_loggedin and "oidc_logintime" in flask.session:
|
| |
email_key, fulln_key, usern_key, ssh_key, groups_key = [
|
| |
pagure_config["OIDC_PAGURE_EMAIL"],
|
| |
Related to https://pagure.io/pagure/issue/5485
The workaround in
pagure/ui/oidc_login.py
probably has to be ported tomaster
too.