From aeb2bb2542b2dfd4223c10eab0e9ad13b6a9b8d3 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 20 Nov 2023 22:25:28 +0100 Subject: [PATCH] Hide button to sync execution environments from unauthorized users --- app/views/execution_environments/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/execution_environments/index.html.slim b/app/views/execution_environments/index.html.slim index 40252d11..58fa7742 100644 --- a/app/views/execution_environments/index.html.slim +++ b/app/views/execution_environments/index.html.slim @@ -1,6 +1,6 @@ h1.d-inline-block = ExecutionEnvironment.model_name.human(count: 2) -- if Runner.management_active? +- if Runner.management_active? && policy(ExecutionEnvironment).sync_all_to_runner_management? = button_to( { action: :sync_all_to_runner_management }, { form_class: 'float-end mb-2', class: 'btn btn-success' }) i.fa-solid.fa-upload = t('execution_environments.index.synchronize_all.button')