2024-02-26 12:37:42 +03:30
|
|
|
|
namespace HiVakil.Domain.Models.Claims;
|
|
|
|
|
|
|
|
|
|
|
|
public static class ApplicationClaims
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public static ClaimDto ManageBlogs { get; } = new ClaimDto
|
|
|
|
|
|
{
|
|
|
|
|
|
Title = "مدیریت بلاگ ها",
|
|
|
|
|
|
Type = CustomClaimType.Permission,
|
|
|
|
|
|
Value = ApplicationPermission.ManageBlogs,
|
|
|
|
|
|
};
|
|
|
|
|
|
public static ClaimDto ViewBlogs { get; } = new ClaimDto
|
|
|
|
|
|
{
|
|
|
|
|
|
Title = "مشاهده بلاگ ها",
|
|
|
|
|
|
Type = CustomClaimType.Permission,
|
|
|
|
|
|
Value = ApplicationPermission.ViewBlogs,
|
|
|
|
|
|
};
|
2024-02-29 17:07:48 +03:30
|
|
|
|
public static ClaimDto ViewBlogCategories { get; } = new ClaimDto
|
2024-02-26 12:37:42 +03:30
|
|
|
|
{
|
2024-02-29 17:07:48 +03:30
|
|
|
|
Title = "مشاهده دسته بندی بلاگ ها",
|
2024-02-26 12:37:42 +03:30
|
|
|
|
Type = CustomClaimType.Permission,
|
2024-02-29 17:07:48 +03:30
|
|
|
|
Value = ApplicationPermission.ViewBlogCategories,
|
2024-02-26 12:37:42 +03:30
|
|
|
|
};
|
2024-02-29 17:07:48 +03:30
|
|
|
|
public static ClaimDto ManageBlogCategories { get; } = new ClaimDto
|
2024-02-26 12:37:42 +03:30
|
|
|
|
{
|
2024-02-29 17:07:48 +03:30
|
|
|
|
Title = "مدیریت دسته بندی بلاگ ها",
|
2024-02-26 12:37:42 +03:30
|
|
|
|
Type = CustomClaimType.Permission,
|
2024-02-29 17:07:48 +03:30
|
|
|
|
Value = ApplicationPermission.ManageBlogCategories,
|
2024-02-26 12:37:42 +03:30
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-29 17:07:48 +03:30
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2024-02-26 12:37:42 +03:30
|
|
|
|
|
|
|
|
|
|
public static List<ClaimDto> AllClaimDtos = new List<ClaimDto>
|
|
|
|
|
|
{
|
|
|
|
|
|
ManageBlogs,
|
|
|
|
|
|
ViewBlogs,
|
2024-02-29 17:07:48 +03:30
|
|
|
|
ViewBlogCategories,
|
|
|
|
|
|
ManageBlogCategories
|
2024-02-26 12:37:42 +03:30
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static List<Claim> AllClaims = new List<Claim>
|
|
|
|
|
|
{
|
|
|
|
|
|
ManageBlogs.GetClaim,
|
|
|
|
|
|
ViewBlogs.GetClaim,
|
2024-02-29 17:07:48 +03:30
|
|
|
|
ViewBlogCategories.GetClaim,
|
|
|
|
|
|
ManageBlogCategories.GetClaim
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static List<Claim> ManagerClaims = new List<Claim>
|
|
|
|
|
|
{
|
|
|
|
|
|
ManageBlogs.GetClaim,
|
|
|
|
|
|
ViewBlogs.GetClaim,
|
|
|
|
|
|
ViewBlogCategories.GetClaim,
|
|
|
|
|
|
ManageBlogCategories.GetClaim
|
2024-02-26 12:37:42 +03:30
|
|
|
|
};
|
|
|
|
|
|
|
2024-02-29 17:07:48 +03:30
|
|
|
|
|
2024-02-26 12:37:42 +03:30
|
|
|
|
public static List<Claim> CustomerClaims = new List<Claim>
|
|
|
|
|
|
{
|
|
|
|
|
|
ViewBlogs.GetClaim,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|