diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 06:07:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 06:07:52 +0300 |
commit | a0c1ba61c8e8c9195e3ad4deefc5c4cb5c6a1501 (patch) | |
tree | 0731210fac047fdfb04a8e907701e0efab8c897e /app/controllers/concerns | |
parent | 77237c5a6b9044f58beabc54d3589e5fa09cbfba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/lfs_request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/concerns/lfs_request.rb b/app/controllers/concerns/lfs_request.rb index 3152d959ae4..2844acea271 100644 --- a/app/controllers/concerns/lfs_request.rb +++ b/app/controllers/concerns/lfs_request.rb @@ -116,6 +116,10 @@ module LfsRequest @objects ||= (params[:objects] || []).to_a end + def objects_oids + objects.map { |o| o['oid'].to_s } + end + def has_authentication_ability?(capability) (authentication_abilities || []).include?(capability) end |