mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
[EC-243] Grant premium status when member accepts org invite (#2043)
This commit is contained in:
@ -15,7 +15,8 @@ namespace Bit.Api.Models.Response
|
||||
IEnumerable<OrganizationUserOrganizationDetails> organizationsUserDetails,
|
||||
IEnumerable<ProviderUserProviderDetails> providerUserDetails,
|
||||
IEnumerable<ProviderUserOrganizationDetails> providerUserOrganizationDetails,
|
||||
bool twoFactorEnabled) : base("profile")
|
||||
bool twoFactorEnabled,
|
||||
bool premiumFromOrganization) : base("profile")
|
||||
{
|
||||
if (user == null)
|
||||
{
|
||||
@ -27,6 +28,7 @@ namespace Bit.Api.Models.Response
|
||||
Email = user.Email;
|
||||
EmailVerified = user.EmailVerified;
|
||||
Premium = user.Premium;
|
||||
PremiumFromOrganization = premiumFromOrganization;
|
||||
MasterPasswordHint = string.IsNullOrWhiteSpace(user.MasterPasswordHint) ? null : user.MasterPasswordHint;
|
||||
Culture = user.Culture;
|
||||
TwoFactorEnabled = twoFactorEnabled;
|
||||
@ -46,6 +48,7 @@ namespace Bit.Api.Models.Response
|
||||
public string Email { get; set; }
|
||||
public bool EmailVerified { get; set; }
|
||||
public bool Premium { get; set; }
|
||||
public bool PremiumFromOrganization { get; set; }
|
||||
public string MasterPasswordHint { get; set; }
|
||||
public string Culture { get; set; }
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
|
Reference in New Issue
Block a user