diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-05 21:16:54 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 10:52:48 +0300 |
commit | a4a3da764ae88c4de95f15f1069df9a43425c029 (patch) | |
tree | 475563ce433040441a7524213cd487913b39cb69 /lib/gitlab | |
parent | 6f5a68f528d6c11f3bfd013e30cc71845abe6ef8 (diff) |
Allow to access pipelines even if they are disabled, but only present jobs and commit statuses without giving ability to access them
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/ci/status/external/common.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/external/common.rb b/lib/gitlab/ci/status/external/common.rb index 4969a350862..cb0fc94f9ae 100644 --- a/lib/gitlab/ci/status/external/common.rb +++ b/lib/gitlab/ci/status/external/common.rb @@ -3,6 +3,10 @@ module Gitlab module Status module External module Common + def label + subject.description || super + end + def has_details? subject.target_url.present? && can?(user, :read_commit_status, subject) |