diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-05-10 23:00:36 +0100 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-05-10 23:00:36 +0100 |
commit | fae745c3421efe5793e55e4b29a538277608120c (patch) | |
tree | 24e3faba4dc53bf05d0910fd0a8c8002473bc70c /app/helpers/projects_helper.rb | |
parent | 4828ef52edee8d23ce564e9d3fe91bdb187a73e3 (diff) | |
download | gitlab-ce-fae745c3421efe5793e55e4b29a538277608120c.tar.gz |
Resolve CE/EE diffs in new proj member importnew-proj-member-scb
Part of single codebase changes.
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 2c43b1a2067..91d15e0e4ea 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -315,6 +315,10 @@ module ProjectsHelper ) % { default_label: default_label } end + def can_import_members? + Ability.allowed?(current_user, :admin_project_member, @project) + end + private def get_project_nav_tabs(project, current_user) |