45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
namespace PARR.Constants
|
||
{
|
||
/// <summary>
|
||
/// Роли ПАРР
|
||
/// </summary>
|
||
public static class ParrRoles
|
||
{
|
||
// Подробнее о авторизации в документации в разделе Авторизация
|
||
|
||
private const string Base = Administrator.Role + ",";
|
||
|
||
/// <summary>
|
||
/// Роль: Администратор
|
||
/// </summary>
|
||
public static class Administrator
|
||
{
|
||
public const string Role = "administrator";
|
||
|
||
public const string Description = "Администратор";
|
||
}
|
||
|
||
/// <summary>
|
||
/// Роль: agent Агент
|
||
/// </summary>
|
||
public static class Agent
|
||
{
|
||
public const string Role = "agent";
|
||
public const string RoleOrAdmin = Base + Role;
|
||
|
||
public const string Description = "Агент";
|
||
}
|
||
|
||
/// <summary>
|
||
/// Роль: espp-robot Робот ЕСПП
|
||
/// </summary>
|
||
public static class EsppRobot
|
||
{
|
||
public const string Role = "espp-robot";
|
||
public const string RoleOrAdmin = Base + Role;
|
||
|
||
public const string Description = "Робот ЕСПП";
|
||
}
|
||
}
|
||
}
|