diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 00:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 00:09:08 +0300 |
commit | 7671216b60e2796a050358ff808b4a0c2de3d22f (patch) | |
tree | 605dfc1339a3cd7dc7353ac6d725191086a9acca /lib | |
parent | c2367afbf57ebc65d5b78a743b5d6a91f0aece9f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/version.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/version.rb b/lib/api/version.rb index f79bb3428f2..2d8c90260fa 100644 --- a/lib/api/version.rb +++ b/lib/api/version.rb @@ -3,6 +3,9 @@ module API class Version < Grape::API helpers ::API::Helpers::GraphqlHelpers + include APIGuard + + allow_access_with_scope :read_user, if: -> (request) { request.get? } before { authenticate! } |