diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-09 15:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-09 15:09:24 +0300 |
commit | a9ced7da447785c57477b3d8dbccc73a78cface1 (patch) | |
tree | 5179d27ab9d801748ee4ed1c64c985974e799812 /app/graphql/resolvers/projects | |
parent | ad0265eead72a624ce7a020847db4f0f0c877e57 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers/projects')
-rw-r--r-- | app/graphql/resolvers/projects/jira_imports_resolver.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/graphql/resolvers/projects/jira_imports_resolver.rb b/app/graphql/resolvers/projects/jira_imports_resolver.rb index e7403745bea..9f71d4f187e 100644 --- a/app/graphql/resolvers/projects/jira_imports_resolver.rb +++ b/app/graphql/resolvers/projects/jira_imports_resolver.rb @@ -8,11 +8,9 @@ module Resolvers alias_method :project, :object def resolve(**args) - return JiraImportData.none unless project&.import_data.present? - authorize!(project) - project.import_data.becomes(JiraImportData).projects + project.jira_imports end def authorized_resource?(project) |