Apply the script-only capability and start contract to every Windows profile
This commit is contained in:
@@ -1153,9 +1153,7 @@ impl SystemHelper {
|
||||
request,
|
||||
} => {
|
||||
let job = self.settings.binding.job(&request.job_bytes)?;
|
||||
if self.settings.managed_scripts() {
|
||||
ensure!(self.settings.permits_script(&job), "MANAGED_SYSTEM_SCRIPT_REQUIRED");
|
||||
}
|
||||
ensure!(self.settings.permits_script(&job), "SYSTEM_SCRIPT_REQUIRED");
|
||||
if matches!(job.action, Action::UpdateAgent { .. }) {
|
||||
ensure!(
|
||||
self.pending_update_activation.is_none(),
|
||||
|
||||
Reference in New Issue
Block a user