From b449546918455ca96d3c92c8aaab7ea3700067ce Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 27 Feb 2023 14:00:04 +0100 Subject: [PATCH] Fix user edit dialog --- app/views/users.py | 4 +++- flask_cas/routing.py | 2 +- sco_version.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/users.py b/app/views/users.py index 7efc08e1a..a9e1af4f5 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -234,7 +234,9 @@ def create_user_form(user_name=None, edit=0, all_roles=True): H.append(f"

Modification de l'utilisateur {user_name}

") submitlabel = "Modifier utilisateur" if "roles_string" in initvalues: - initvalues["roles"] = initvalues["roles_string"].split(",") + initvalues["roles"] = [ + r.strip() for r in initvalues["roles_string"].split(",") + ] else: initvalues["roles"] = [] if "date_expiration" in initvalues: diff --git a/flask_cas/routing.py b/flask_cas/routing.py index 40112057d..2a66f4945 100644 --- a/flask_cas/routing.py +++ b/flask_cas/routing.py @@ -107,7 +107,7 @@ def validate(ticket): Will attempt to validate the ticket. If validation fails, then False is returned. If validation is successful, then True is returned and the validated username is saved in the session under the - key `CAS_USERNAME_SESSION_KEY` while tha validated attributes dictionary + key `CAS_USERNAME_SESSION_KEY` while the validated attributes dictionary is saved under the key 'CAS_ATTRIBUTES_SESSION_KEY'. """ diff --git a/sco_version.py b/sco_version.py index 77a09ba3d..17cdecb70 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.53" +SCOVERSION = "9.4.54" SCONAME = "ScoDoc"