diff options
Diffstat (limited to 'app/controllers/projects/ml/candidates_controller.rb')
-rw-r--r-- | app/controllers/projects/ml/candidates_controller.rb | 4 |
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 |