Webiant Logo Webiant Logo
  1. No results found.

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

PermissionMappingModel.cs

using Nop.Web.Areas.Admin.Models.Customers;
using Nop.Web.Framework.Models;

namespace Nop.Web.Areas.Admin.Models.Security;

/// 
/// Represents a permission mapping model
/// 
public partial record PermissionMappingModel : BaseNopModel
{
    #region Ctor

    public PermissionMappingModel()
    {
        AvailablePermissions = new List();
        AvailableCustomerRoles = new List();
        Allowed = new Dictionary>();
    }

    #endregion

    #region Properties

    public IList AvailablePermissions { get; set; }

    public IList AvailableCustomerRoles { get; set; }

    //[permission system name] / [customer role id] / [allowed]
    public IDictionary> Allowed { get; set; }

    #endregion
}