From 6de3aebf3a675acb76e484b5dfa083ecddea2d69 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 28 May 2021 14:23:30 +0200 Subject: [PATCH] Fix for #1998 (Error 500 with configured oauth on user setup page accessed by admins) --- cps/templates/user_edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 6eeb069c..cc83a1b5 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -47,7 +47,7 @@ {% endfor %} - {% if registered_oauth.keys()| length > 0 and not new_user %} + {% if registered_oauth.keys()| length > 0 and not new_user and profile %} {% for id, name in registered_oauth.items() %}