Sha256: 3cbc5265bcbb645c8e8f39f0be1272f5e81f5d365633f8930646c4c845c315b5
Contents?: true
Size: 366 Bytes
Versions: 508
Compression:
Stored size: 366 Bytes
Contents
function CheckFileAccessRules { param($path, $identity, $rules) $accessRules = @((Get-Acl $path).access | Where-Object {$_.AccessControlType -eq 'Allow' -and $_.IdentityReference -eq $identity }) $match = @($accessRules | Where-Object {($_.FileSystemRights.ToString().Split(',') | % {$_.trim()} | ? {$rules -contains $_}) -ne $null}) $match.count -gt 0 }
Version data entries
508 entries across 508 versions & 4 rubygems