Commit c79b3692a6d5c0c4b0e924e0bb4353eca93cfb14
1 parent
fcbc8630
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
should not broke community criation if there is no serpro integration plugin configuration
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
plugins/serpro_integration/lib/ext/community.rb
... | ... | @@ -68,6 +68,7 @@ class Community |
68 | 68 | end |
69 | 69 | |
70 | 70 | def allow_serpro_integration? |
71 | + return false if serpro_integration_plugin_settings.communities.blank? || serpro_integration_plugin_settings.communities[:templates].blank? | |
71 | 72 | allow = serpro_integration_plugin_settings.communities[:templates].include?(self.id.to_s) |
72 | 73 | allow || serpro_integration_plugin_settings.communities[:templates].include?(self.template_id.to_s) |
73 | 74 | end | ... | ... |