diff options
Diffstat (limited to 'app/helpers/invite_members_helper.rb')
-rw-r--r-- | app/helpers/invite_members_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/invite_members_helper.rb b/app/helpers/invite_members_helper.rb index ac6ac9979b3..cea28fd4611 100644 --- a/app/helpers/invite_members_helper.rb +++ b/app/helpers/invite_members_helper.rb @@ -18,4 +18,8 @@ module InviteMembersHelper experiment_enabled?(:invite_members_version_b) && !can_import_members? end end + + def invite_group_members?(group) + experiment_enabled?(:invite_members_empty_group_version_a) && Ability.allowed?(current_user, :admin_group_member, group) + end end |