yavsc/src/Yavsc.Server/Settings/UserPolicies.cs
Paul Schneider 40e8e08690 reorg
2026-02-28 21:17:54 +00:00

16 lines
460 B
C#

using System;
using System.Collections.Generic;
using Yavsc.Models;
namespace Yavsc.Server.Settings
{
public class UserPolicies
{
public static readonly Dictionary<string, Func<ApplicationUser, bool>> Criterias =
new Dictionary<string, Func<ApplicationUser, bool>>
{
{ "allow-monthly", u => u.AllowMonthlyEmail },
{ "email-not-confirmed", u => !u.EmailConfirmed }
};
}
}