Browse Source

Fixes #35

tags/4.2.4
Raimund Andée [MSFT] 6 years ago
parent
commit
4bcaaa9427
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Security2/FileSystem/FileSystemAuditRule2 Class/FileSystemAuditRule2.RemoveFileSystemAuditRule.cs

+ 2
- 2
Security2/FileSystem/FileSystemAuditRule2 Class/FileSystemAuditRule2.RemoveFileSystemAuditRule.cs View File

@@ -17,7 +17,7 @@ namespace Security2

ace = (FileSystemAuditRule)sd.AuditRuleFactory(account, (int)rights, false, inheritanceFlags, propagationFlags, type);

sd.RemoveAuditRuleSpecific(ace);
sd.RemoveAuditRule(ace);

file.SetAccessControl(sd);
}
@@ -28,7 +28,7 @@ namespace Security2
var sd = directory.GetAccessControl(AccessControlSections.Audit);

ace = (FileSystemAuditRule)sd.AuditRuleFactory(account, (int)rights, false, inheritanceFlags, propagationFlags, type);
sd.RemoveAuditRuleSpecific(ace);
sd.RemoveAuditRule(ace);

directory.SetAccessControl(sd);
}


Loading…
Cancel
Save