From f50bdd145b29cce732a6292adefe502069690038 Mon Sep 17 00:00:00 2001 From: JonathanStein Date: Wed, 15 May 2024 09:46:08 +0200 Subject: [PATCH] [FIX] password_security: Access company as superuser Seems like user may not always have access to company - access with su=True should be safe for reading these properties --- password_security/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/password_security/controllers/main.py b/password_security/controllers/main.py index f50bb0bd55..2194818e51 100644 --- a/password_security/controllers/main.py +++ b/password_security/controllers/main.py @@ -60,7 +60,7 @@ def get_auth_signup_config(self): "password_special", "password_estimate", ): - signup_config[property_name] = request.env.company[property_name] + signup_config[property_name] = request.env(su=True).company[property_name] return signup_config @http.route()