Skip to content
Snippets Groups Projects

Enable CRM by default for new groups

Merged Lee Tickett requested to merge gitlab-community/gitlab:2256-auto-enable-crm into master
All threads resolved!
Compare and Show latest version
40 files
+ 83
82
Compare changes
  • Side-by-side
  • Inline
Files
40
+ 1
2
@@ -160,7 +160,6 @@ def of_ancestors_and_self
after_create :post_create_hook
after_create -> { create_or_load_association(:group_feature) }
after_create -> { create_or_load_association(:crm_settings) }
after_update :path_changed_hook, if: :saved_change_to_path?
after_destroy :post_destroy_hook
after_commit :update_two_factor_requirement
@@ -886,7 +885,7 @@ def group_feature
end
def crm_enabled?
crm_settings&.enabled?
crm_settings.nil? || crm_settings.enabled?
end
def shared_with_group_links_visible_to_user(user)
Loading