diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 00:08:53 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 00:08:53 +0000 |
commit | d65442b1d9621da6749d59ea1a544a2ea39b3a79 (patch) | |
tree | 0aa6fb67b70c38cdd949a2b4002ceb459860fa82 /app/graphql/resolvers | |
parent | b6ec12ceca58b12d974d46d0579742f4d3cdb9d7 (diff) | |
download | gitlab-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.rb | 4 |
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 |