Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Permissions.cshtml

@model PermissionMappingModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.ACL").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Access control list");
}

@T("Admin.Configuration.ACL")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PermissionListButtons, additionalData = Model })

@T("Admin.Configuration.ACL.Description")

@if (!Model.AvailablePermissions.Any()) { No permissions defined } else if (!Model.AvailableCustomerRoles.Any()) { No customer roles available } else {
@foreach (var cr in Model.AvailableCustomerRoles) { } @foreach (var pr in Model.AvailablePermissions) { @foreach (var cr in Model.AvailableCustomerRoles) { var allowed = Model.Allowed.ContainsKey(pr.SystemName) && Model.Allowed[pr.SystemName][cr.Id]; } }
@T("Admin.Configuration.ACL.Permission")
@pr.Name
}