private void absorbReportPermissionsFrom(KeyChain chain) { if (chain.CanAccessAllReports) { CanAccessAllReports = true; } if (chain.Reports == null) { return; } foreach (var cmd in chain.Reports) { if (!Reports.Contains(cmd)) { Reports.Add(cmd); } } }
private void absorbTabPermissionsFrom(KeyChain chain) { if (chain.CanAccessAllTabs) { CanAccessAllTabs = true; } if (chain.Tabs == null) { return; } foreach (var cmd in chain.Tabs) { if (!Tabs.Contains(cmd)) { Tabs.Add(cmd); } } }
private void absorbCommandPermissionsFrom(KeyChain chain) { if (chain.CanAccessAllCommands) { CanAccessAllCommands = true; } if (chain.Commands == null) { return; } foreach (var cmd in chain.Commands) { if (!Commands.Contains(cmd)) { Commands.Add(cmd); } } }