From f18e7a5447c4606b6bf4011e763e312a8c7379ce Mon Sep 17 00:00:00 2001 From: Ben Cotton Date: May 18 2021 13:19:59 +0000 Subject: Use the correct name of the agreement This should hopefully fix the issue of admins not being recognized. Signed-off-by: Ben Cotton --- diff --git a/fedora_elections/__init__.py b/fedora_elections/__init__.py index 06f9cfb..f375f79 100644 --- a/fedora_elections/__init__.py +++ b/fedora_elections/__init__.py @@ -205,7 +205,7 @@ def set_session(): # pragma: no-cover "username": OIDC.user_getfield("nickname"), "email": OIDC.user_getfield("email") or "", "timezone": OIDC.user_getfield("zoneinfo"), - "cla_done": "FPCA" in (OIDC.user_getfield("agreements") or []), + "cla_done": "Fedora Project Contributor Agreement" in (OIDC.user_getfield("agreements") or []), } ) flask.g.fas_user = flask.session.fas_user