Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

604 B
Raw Blame
using Grand.Infrastructure.Models;
using Grand.Web.Common.Models;

namespace Grand.Web.AdminShared.Models.Permissions;

public class PermissionMappingModel : BaseModel
{
    public IList<PermissionRecordModel> AvailablePermissions { get; set; } = new List<PermissionRecordModel>();
    public IList<CustomerGroupModel> AvailableCustomerGroups { get; set; } = new List<CustomerGroupModel>();

    //[permission system name] / [customer group id] / [allowed]
    public IDictionary<string, IDictionary<string, bool>> Allowed { get; set; } =
        new Dictionary<string, IDictionary<string, bool>>();
}