From ea0d6a85fd6e42dadcdee83df7488d38eb2ade07 Mon Sep 17 00:00:00 2001 From: Zebreus Date: Sun, 25 Oct 2026 15:37:58 +0100 Subject: [PATCH] Let the user change the texts again after they made them read-only Co-Authored-By: Claude Opus 5.5 (1M context) --- server/scripts/install_restore_task.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/scripts/install_restore_task.ps1 b/server/scripts/install_restore_task.ps1 index 6dd6ced..03c7a82 100644 --- a/server/scripts/install_restore_task.ps1 +++ b/server/scripts/install_restore_task.ps1 @@ -141,6 +141,8 @@ foreach ($copy in Get-ChildItem -LiteralPath $copies -Recurse -File -Force) { Copy-Item -LiteralPath $copy.FullName -Destination $target -Force } Set-ProtectedAcl $target $false ($readOnly -notcontains $copy.Name) + # the user may have made the file read-only for themselves, the four texts are theirs to change + (Get-Item -LiteralPath $target -Force).IsReadOnly = $false Write-Log "restored $($copy.Name)" } catch { Write-Log "failed $($copy.Name) : $_"