public string GetSecuritySummary()
{
StringBuilder result = new StringBuilder();
initSecurity();
foreach (var group in _groups)
{
result.AppendLine(string.Format("Security Group: {0}\r\n", group.Name));
foreach (var col in group.Columns)
{
result.AppendFormat(" Column Category:'{0}' Security Tag:'{1}' => Right:{2}\r\n", col.Category, col.Tag, Helper.GetEnumDescription(col.Rights.GetType(), col.Rights));
}
result.AppendLine();
result.AppendLine(getSecuritySummary(group, Repository.ReportsFolder + "\\"));
}
result.AppendLine("\r\nNote: If a user belongs to several groups, the weakest right is applied\r\n");
return result.ToString();
}