using Bit.Core.Context; namespace Bit.Api.AdminConsole.Authorization.Requirements; /// /// Requires that the user is a member of the organization. /// public class MemberRequirement : IOrganizationRequirement { public Task AuthorizeAsync( CurrentContextOrganization? organizationClaims, Func> isProviderUserForOrg) => Task.FromResult(organizationClaims is not null); }