mirror of
https://github.com/bitwarden/server
synced 2026-02-02 09:43:19 +00:00
- Revoking users when enabling single org and 2fa policies. - Updated emails sent when users are revoked via 2FA or Single Organization policy enablement Co-authored-by: Matt Bishop <mbishop@bitwarden.com> Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
17 lines
501 B
C#
17 lines
501 B
C#
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.AdminConsole.Models.Data;
|
|
|
|
public class StandardUser : IActingUser
|
|
{
|
|
public StandardUser(Guid userId, bool isOrganizationOwner)
|
|
{
|
|
UserId = userId;
|
|
IsOrganizationOwnerOrProvider = isOrganizationOwner;
|
|
}
|
|
|
|
public Guid? UserId { get; }
|
|
public bool IsOrganizationOwnerOrProvider { get; }
|
|
public EventSystemUser? SystemUserType => throw new Exception($"{nameof(StandardUser)} does not have a {nameof(SystemUserType)}");
|
|
}
|