Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a5383054
Commit
a5383054
authored
Mar 06, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ActiveSupport::Concern
parent
15de364e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ee/lib/ee/api/job_artifacts.rb
ee/lib/ee/api/job_artifacts.rb
+11
-11
No files found.
ee/lib/ee/api/job_artifacts.rb
View file @
a5383054
module
EE
module
API
module
JobArtifacts
def
self
.
prepended
(
api
)
api
.
module_eval
do
helpers
do
def
authorize_download_artifacts!
super
check_cross_project_pipelines_feature!
end
extend
ActiveSupport
::
Concern
prepended
do
helpers
do
def
authorize_download_artifacts!
super
check_cross_project_pipelines_feature!
end
def
check_cross_project_pipelines_feature!
if
job_token_authentication?
&&
!
@project
.
feature_available?
(
:cross_project_pipelines
)
not_found!
(
'Project'
)
end
def
check_cross_project_pipelines_feature!
if
job_token_authentication?
&&
!
@project
.
feature_available?
(
:cross_project_pipelines
)
not_found!
(
'Project'
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment