Fix CRM Quick Actions Available when Feature Disabled
@gweaver identified that it the CRM group setting is being ignored in subgroups.
It looks like the change to only support contacts/organizations in root groups inadvertently broke it.
This MR fixes it and adds a spec to prevent regression.
Validation
https://docs.gitlab.com/ee/user/crm/
- Enable CRM feature flag for a root group
- Enable CRM feature in root group settings
- Create 1 or more contacts in the root group (if you've recently installed GDK or reset your db, they will already exist)
- Create a subgroup (and ensure the CRM feature is not enabled)
- Ensure the
/add_contacts
and/remove_contacts
quick actions work in issues for projects in the root group - Ensure the quick actions do not work for issues in the subgroup
Related to #2256