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); }
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); }