Webiant Logo Webiant Logo
  1. No results found.

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

PermissionConfig.cs

namespace Nop.Services.Security;

/// 
/// Permission config
/// 
public partial class PermissionConfig
{
    #region Ctor

    public PermissionConfig(string name, string systemName, string category, params string[] defaultCustomerRoles)
    {
        Name = name;
        SystemName = systemName;
        Category = category;

        DefaultCustomerRoles.AddRange(defaultCustomerRoles);
    }

    #endregion

    #region Properties

    /// 
    /// Gets or sets the permission name
    /// 
    public string Name { get; protected set; }

    /// 
    /// Gets or sets the permission system name
    /// 
    public string SystemName { get; protected set; }

    /// 
    /// Gets or sets the permission category
    /// 
    public string Category { get; protected set; }

    /// 
    /// Gets default list of customer roles system name
    /// 
    public List DefaultCustomerRoles { get; } = new();

    #endregion
}