Apply the script-only capability and start contract to every Windows profile

This commit is contained in:
2026-11-18 12:17:52 +01:00
parent 4afa6e4a12
commit 55fad07327
7 changed files with 41 additions and 103 deletions
+1 -3
View File
@@ -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(),