Skip to content
Snippets Groups Projects
Commit eb26755d authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Create_deployment ability is need to create retry or rollback deployment

parent 2bed8db9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -249,8 +249,7 @@ class Ability
:create_container_image,
:update_container_image,
:create_environment,
:create_deployment,
:update_deployment
:create_deployment
]
end
 
Loading
Loading
@@ -269,6 +268,7 @@ class Ability
:push_code_to_protected_branches,
:update_project_snippet,
:update_environment,
:update_deployment,
:admin_milestone,
:admin_project_snippet,
:admin_project_member,
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@
#{time_ago_with_tooltip(deployment.created_at)}
 
%td
- if can?(current_user, :update_deployment, deployment) && deployment.deployable
- if can?(current_user, :create_deployment, deployment) && deployment.deployable
.pull-right
= link_to retry_namespace_project_build_path(@project.namespace, @project, deployment.deployable), method: :post, class: 'btn btn-build' do
- if deployment.last?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment