diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-05 20:16:54 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 09:52:48 +0200 |
commit | a4a3da764ae88c4de95f15f1069df9a43425c029 (patch) | |
tree | 475563ce433040441a7524213cd487913b39cb69 /app/policies | |
parent | 6f5a68f528d6c11f3bfd013e30cc71845abe6ef8 (diff) | |
download | gitlab-ce-a4a3da764ae88c4de95f15f1069df9a43425c029.tar.gz |
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 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 3959b895f44..47518dddb61 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -203,7 +203,7 @@ class ProjectPolicy < BasePolicy unless project.feature_available?(:builds, user) && repository_enabled cannot!(*named_abilities(:build)) - cannot!(*named_abilities(:pipeline)) + cannot!(*named_abilities(:pipeline) - [:read_pipeline]) cannot!(*named_abilities(:pipeline_schedule)) cannot!(*named_abilities(:environment)) cannot!(*named_abilities(:deployment)) |