Skip to content
Snippets Groups Projects
Commit 3e55e074 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Check if user can trigger manual action in the UI

parent d96e9073
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -101,7 +101,7 @@
= link_to cancel_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: 'Cancel', class: 'btn btn-build' do
= icon('remove', class: 'cred')
- elsif allow_retry
- if build.playable? && !admin
- if build.playable? && !admin && build.can_play?(current_user)
= link_to play_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: 'Play', class: 'btn btn-build' do
= custom_icon('icon_play')
- elsif build.retryable?
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