예제 #1
0
 public FileAccessRules UpdateFileRules(FileAccessRules filePermission, AccessRule fileRule)
 {
     filePermission.Copy     = HasPermission(fileRule.Copy);
     filePermission.Download = HasPermission(fileRule.Download);
     filePermission.Edit     = HasPermission(fileRule.Edit);
     filePermission.Read     = HasPermission(fileRule.Read);
     return(filePermission);
 }
예제 #2
0
 public FileAccessRules UpdateFolderRules(FileAccessRules filePermission, AccessRule folderRule)
 {
     filePermission.Copy         = HasPermission(folderRule.Copy);
     filePermission.Edit         = HasPermission(folderRule.Edit);
     filePermission.EditContents = HasPermission(folderRule.EditContents);
     filePermission.Read         = HasPermission(folderRule.Read);
     filePermission.Upload       = HasPermission(folderRule.Upload);
     return(filePermission);
 }