mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 08:32:50 -05: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
434 B
C#
17 lines
434 B
C#
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.AdminConsole.Models.Data;
|
|
|
|
public class SystemUser : IActingUser
|
|
{
|
|
public SystemUser(EventSystemUser systemUser)
|
|
{
|
|
SystemUserType = systemUser;
|
|
}
|
|
|
|
public Guid? UserId => throw new Exception($"{nameof(SystemUserType)} does not have a {nameof(UserId)}.");
|
|
|
|
public bool IsOrganizationOwnerOrProvider => false;
|
|
public EventSystemUser? SystemUserType { get; }
|
|
}
|