diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-12 16:16:39 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-13 11:03:39 +0200 |
commit | e84c155f092600b90be291f0f7bb649811fa53fb (patch) | |
tree | cbd5703632b2b92c6d8793a5aabb2a5b14e69d9b /app/models | |
parent | 4d72ca39803615850267d034e9dc59540fe657b7 (diff) | |
download | gitlab-ce-e84c155f092600b90be291f0f7bb649811fa53fb.tar.gz |
WIP
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ability.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index c0bf6def7c5..ec5ac54c277 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -195,6 +195,7 @@ class Ability :admin_label, :read_commit_status, :read_build, + :read_pipeline, ] end @@ -206,6 +207,8 @@ class Ability :update_commit_status, :create_build, :update_build, + :create_pipeline, + :update_pipeline, :create_merge_request, :create_wiki, :push_code @@ -234,7 +237,8 @@ class Ability :admin_wiki, :admin_project, :admin_commit_status, - :admin_build + :admin_build, + :admin_pipeline ] end @@ -277,6 +281,7 @@ class Ability unless project.builds_enabled rules += named_abilities('build') + rules += named_abilities('pipeline') end rules |