diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 18:10:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 18:10:04 +0300 |
commit | f3b1e07903a7f509b11ad7cf188fac46d98f77f6 (patch) | |
tree | a6fa5e65d83d94334387952f1f526ed438604408 /app/graphql/resolvers/projects/jira_imports_resolver.rb | |
parent | ba174c982f40d71a87fd511b091753807174f7e7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers/projects/jira_imports_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/projects/jira_imports_resolver.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/resolvers/projects/jira_imports_resolver.rb b/app/graphql/resolvers/projects/jira_imports_resolver.rb index a9bfb7b612e..e7403745bea 100644 --- a/app/graphql/resolvers/projects/jira_imports_resolver.rb +++ b/app/graphql/resolvers/projects/jira_imports_resolver.rb @@ -16,6 +16,8 @@ module Resolvers end def authorized_resource?(project) + return false unless Feature.enabled?(:jira_issue_import, project) + Ability.allowed?(context[:current_user], :admin_project, project) end end |