18 lines
426 B
C#
18 lines
426 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Oqtane.Security
|
|
{
|
|
public class PermissionRequirement : IAuthorizationRequirement
|
|
{
|
|
public string EntityName { get; }
|
|
|
|
public string PermissionName { get; }
|
|
|
|
public PermissionRequirement(string EntityName, string PermissionName)
|
|
{
|
|
EntityName = EntityName;
|
|
PermissionName = PermissionName;
|
|
}
|
|
}
|
|
}
|