summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 00:08:53 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 00:08:53 +0000
commitd65442b1d9621da6749d59ea1a544a2ea39b3a79 (patch)
tree0aa6fb67b70c38cdd949a2b4002ceb459860fa82 /app/graphql/resolvers
parentb6ec12ceca58b12d974d46d0579742f4d3cdb9d7 (diff)
downloadgitlab-ce-d65442b1d9621da6749d59ea1a544a2ea39b3a79.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers')
-rw-r--r--app/graphql/resolvers/base_resolver.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/graphql/resolvers/base_resolver.rb b/app/graphql/resolvers/base_resolver.rb
index f2b015edfa1..66cb224f157 100644
--- a/app/graphql/resolvers/base_resolver.rb
+++ b/app/graphql/resolvers/base_resolver.rb
@@ -58,5 +58,9 @@ module Resolvers
def single?
false
end
+
+ def current_user
+ context[:current_user]
+ end
end
end