Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#67256] handle old provider data where group_regexes are nil

Eric Schubertee35da1ac441
diff --git a/modules/openid_connect/app/models/openid_connect/provider.rb b/modules/openid_connect/app/models/openid_connect/provider.rb
index 5362f64fc17..75106e1c261 100644
--- a/modules/openid_connect/app/models/openid_connect/provider.rb
+++ b/modules/openid_connect/app/models/openid_connect/provider.rb
@@ -109,6 +109,11 @@ module OpenIDConnect
end
end
+ def group_regexes
+ # handle legacy data, where group regexes where `nil`.
+ super || []
+ end
+
def google?
oidc_provider == "google"
end