mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed Roles export handler.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Orchard.Roles.ImportExport {
|
||||
var root = new XElement("Roles");
|
||||
context.Document.Element("Orchard").Add(root);
|
||||
|
||||
foreach (var role in roles.OrderBy(x => x)) {
|
||||
foreach (var role in roles.OrderBy(x => x.Name)) {
|
||||
root.Add(new XElement("Role",
|
||||
new XAttribute("Name", role.Name),
|
||||
new XAttribute("Permissions", string.Join(",", role.RolesPermissions.Select(rolePermission => rolePermission.Permission.Name)))));
|
||||
|
Reference in New Issue
Block a user