mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-03 00:03:19 +02:00
FileSystemShare: Renamed event from OnAccessRequest to AccessRequested
This commit is contained in:
parent
fb7d6d4bc8
commit
b5db0ac4b8
2 changed files with 3 additions and 3 deletions
|
@ -168,7 +168,7 @@ namespace SMBServer
|
|||
XmlNode writeAccessNode = shareNode.SelectSingleNode("WriteAccess");
|
||||
List<string> writeAccess = ReadAccessList(writeAccessNode);
|
||||
FileSystemShare share = new FileSystemShare(shareName, new DirectoryFileSystem(sharePath));
|
||||
share.OnAccessRequest += delegate(object sender, AccessRequestArgs args)
|
||||
share.AccessRequested += delegate(object sender, AccessRequestArgs args)
|
||||
{
|
||||
bool hasReadAccess = Contains(readAccess, "Users") || Contains(readAccess, args.UserName);
|
||||
bool hasWriteAccess = Contains(writeAccess, "Users") || Contains(writeAccess, args.UserName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue