diff --git a/Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs b/Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs index 4945596..b48e41d 100644 --- a/Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs +++ b/Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs @@ -68,7 +68,7 @@ namespace Security2 } public SimpleFileSystemAccessRule ToSimpleFileSystemAccessRule2() { - return new SimpleFileSystemAccessRule(fullName, Account, AccessRights); + return new SimpleFileSystemAccessRule(fullName, Account, AccessRights, AccessControlType); } } } \ No newline at end of file diff --git a/Security2/FileSystem/SimpleFileSystemAccessRule.cs b/Security2/FileSystem/SimpleFileSystemAccessRule.cs index 8bd09f1..6c6e47c 100644 --- a/Security2/FileSystem/SimpleFileSystemAccessRule.cs +++ b/Security2/FileSystem/SimpleFileSystemAccessRule.cs @@ -100,11 +100,12 @@ namespace Security2 } } - public SimpleFileSystemAccessRule(string Path, IdentityReference2 account, FileSystemRights2 access) + public SimpleFileSystemAccessRule(string path, IdentityReference2 account, FileSystemRights2 access, AccessControlType accessControlType) { - this.fullName = Path; - this.accessRights = access; - this.identity = account; + fullName = path; + accessRights = access; + identity = account; + type = accessControlType; } public override bool Equals(object obj)