Skip to content

Commit

Permalink
Fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
raandree committed Aug 13, 2018
1 parent 35c379f commit 4bcaaa9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void RemoveFileSystemAuditRule(FileSystemInfo item, IdentityRefere

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

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

file.SetAccessControl(sd);
}
Expand All @@ -28,7 +28,7 @@ public static void RemoveFileSystemAuditRule(FileSystemInfo item, IdentityRefere
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);
}
Expand Down

0 comments on commit 4bcaaa9

Please sign in to comment.