13 lines
334 B
C#
13 lines
334 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace LCU.Library.Internal.Security.Models.AccessPolicy;
|
|
|
|
public class GroupMembershipRequirement : IAuthorizationRequirement
|
|
{
|
|
public IReadOnlyCollection<string> Groups { get; }
|
|
|
|
public GroupMembershipRequirement(params string[] groups)
|
|
{
|
|
Groups = groups;
|
|
}
|
|
} |