Browse Source

Fixes #48

tags/4.2.6
Raimund Andée [MSFT] 5 years ago
parent
commit
f23e2f63a1
2 changed files with 6 additions and 5 deletions
  1. +1
    -1
      Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs
  2. +5
    -4
      Security2/FileSystem/SimpleFileSystemAccessRule.cs

+ 1
- 1
Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs View File

@@ -68,7 +68,7 @@ namespace Security2
}
public SimpleFileSystemAccessRule ToSimpleFileSystemAccessRule2()
{
return new SimpleFileSystemAccessRule(fullName, Account, AccessRights);
return new SimpleFileSystemAccessRule(fullName, Account, AccessRights, AccessControlType);
}
}
}

+ 5
- 4
Security2/FileSystem/SimpleFileSystemAccessRule.cs View File

@@ -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)


Loading…
Cancel
Save