mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 12:53:33 +08:00
13 lines
519 B
C#
13 lines
519 B
C#
![]() |
using Orchard.Security;
|
|||
|
using Orchard.UI.Navigation;
|
|||
|
|
|||
|
namespace Orchard.Core.Dashboard {
|
|||
|
public class AdminMenu : INavigationProvider {
|
|||
|
public string MenuName { get { return "admin"; } }
|
|||
|
|
|||
|
public void GetNavigation(NavigationBuilder builder) {
|
|||
|
builder.Add("Dashboard", "0",
|
|||
|
menu => menu.Add("Manage Orchard", "0", item => item.Action("Index", "Admin", new { area = "Dashboard" }).Permission(StandardPermissions.AccessAdminPanel)));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|