Files
dukang/fix_acl.ps1
T
jacy 1c91e6bae9
CI / verify (push) Has been cancelled
v3.4.17 门店套餐审核快捷入口
2026-08-16 11:57:01 +08:00

6 lines
444 B
PowerShell

$sid = New-Object System.Security.Principal.SecurityIdentifier('S-1-5-21-4178830254-1499118431-1315729128-3960883439')
$acl = Get-Acl 'C:\Users\Jacy\0projects\2026062901-dukang-v1\.git'
$rules = $acl.Access | Where-Object { $_.IdentityReference -eq $sid -and $_.AccessControlType -eq 'Deny' }
foreach ($r in $rules) { $acl.RemoveAccessRule($r) | Out-Null }
$acl | Set-Acl 'C:\Users\Jacy\0projects\2026062901-dukang-v1\.git'
Write-Host 'done'