Add option to sync single execution environment

This commit is contained in:
Sebastian Serth
2021-12-09 16:44:05 +01:00
parent 8faa35e629
commit 8535cd9a9c
6 changed files with 33 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class ExecutionEnvironmentPolicy < AdminOnlyPolicy
%i[execute_command? shell? statistics? show?].each do |action|
%i[execute_command? shell? statistics? show? sync_to_runner_management?].each do |action|
define_method(action) { admin? || author? }
end