Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/ml/candidates_controller.rb')
-rw-r--r--app/controllers/projects/ml/candidates_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/projects/ml/candidates_controller.rb b/app/controllers/projects/ml/candidates_controller.rb
index 9905e454acb..12111c45fde 100644
--- a/app/controllers/projects/ml/candidates_controller.rb
+++ b/app/controllers/projects/ml/candidates_controller.rb
@@ -9,7 +9,9 @@ module Projects
feature_category :mlops
- def show; end
+ def show
+ @include_ci_info = @candidate.from_ci? && can?(current_user, :read_build, @candidate.ci_build)
+ end
def destroy
@experiment = @candidate.experiment