mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Merge branch 'dev' of https://github.com/OrchardCMS/Orchard.git
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Orchard.Roles.ImportExport {
|
|||||||
var root = new XElement("Roles");
|
var root = new XElement("Roles");
|
||||||
context.Document.Element("Orchard").Add(root);
|
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",
|
root.Add(new XElement("Role",
|
||||||
new XAttribute("Name", role.Name),
|
new XAttribute("Name", role.Name),
|
||||||
new XAttribute("Permissions", string.Join(",", role.RolesPermissions.Select(rolePermission => rolePermission.Permission.Name)))));
|
new XAttribute("Permissions", string.Join(",", role.RolesPermissions.Select(rolePermission => rolePermission.Permission.Name)))));
|
||||||
|
|||||||
Reference in New Issue
Block a user