Commit bee2e88662c8553601333140257d9cce7c9742f1
1 parent
55e96f6e
Exists in
master
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
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 | ... | ... |