diff --git a/app/auth/models.py b/app/auth/models.py index 6749150d9..9126d6eda 100644 --- a/app/auth/models.py +++ b/app/auth/models.py @@ -222,7 +222,11 @@ class User(UserMixin, ScoDocModel): ) return False # si CAS activé et forcé et cas_id renseigné, on ne peut pas se logguer - if self.cas_id and ScoDocSiteConfig.get("cas_force"): + if ( + self.cas_id + and self.cas_allow_login + and ScoDocSiteConfig.get("cas_force") + ): log( f"""auth: login attempt for user {self.user_name } (cas_id='{ diff --git a/sco_version.py b/sco_version.py index 8e43f1a7e..b4af3b3e5 100644 --- a/sco_version.py +++ b/sco_version.py @@ -3,7 +3,7 @@ "Infos sur version ScoDoc" -SCOVERSION = "9.7.42" +SCOVERSION = "9.7.43" SCONAME = "ScoDoc"