=== modified file 'doc/changes.rst'
@@ -7,6 +7,7 @@
============
* Unreleased.
+* Allow settings.conf to define OPENID_LAUNCHPAD_TEAMS_MAPPING.
* Added configurable OpenID redirect domain support for login.
.. _version_0_14:
=== modified file 'lava_server/settings/debian.py'
@@ -83,5 +83,9 @@
if debian_settings.get_setting("ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS"):
ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS = debian_settings.get_setting("ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS")
+if debian_settings.get_setting("OPENID_LAUNCHPAD_TEAMS_MAPPING"):
+ OPENID_LAUNCHPAD_TEAMS_MAPPING_AUTO = False
+ OPENID_LAUNCHPAD_TEAMS_MAPPING = debian_settings.get_setting("OPENID_LAUNCHPAD_TEAMS_MAPPING")
+
# Load extensions
loader.contribute_to_settings(locals(), debian_settings)