mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 20:18:40 +08:00
parent
e04cba683f
commit
a7f0494ae0
@ -25,7 +25,7 @@ namespace Orchard.Core.Navigation.Services {
|
||||
if (menuPart != null) {
|
||||
var part = menuPart;
|
||||
|
||||
builder.Add(new LocalizedString(HttpUtility.HtmlEncode(part.AdminMenuText)),
|
||||
builder.Add(new LocalizedString(part.AdminMenuText),
|
||||
part.AdminMenuPosition,
|
||||
item => item.Action(_contentManager.GetItemMetadata(part.ContentItem).AdminRouteValues));
|
||||
// todo: somehow determine if they will ultimately have rights to the destination and hide if not. possibly would need to add a Permission to metadata.
|
||||
|
Loading…
Reference in New Issue
Block a user