1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 12:03:21 +00:00

Enhance XML documentation for Premium property in OrganizationUserUserDetails and User classes to clarify its usage and limitations regarding personal and organizational premium access.

This commit is contained in:
Rui Tome
2025-12-05 16:06:34 +00:00
parent bf0cc7a7da
commit 65941d4300
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,9 @@ public class OrganizationUserUserDetails : IExternal, ITwoFactorProvidersUser, I
public string AvatarColor { get; set; }
public string TwoFactorProviders { get; set; }
/// <summary>
/// User's personal premium subscription status. Does not reflect organization premium access.
/// Indicates whether the user has a personal premium subscription.
/// Does not include premium access from organizations -
/// do not use this to check whether the user can access premium features.
/// Null when the organization user is in Invited status (UserId is null).
/// </summary>
public bool? Premium { get; set; }

View File

@@ -71,7 +71,8 @@ public class User : ITableObject<Guid>, IStorableSubscriber, IRevisable, ITwoFac
public string? SecurityState { get; set; }
/// <summary>
/// Indicates whether the user has a personal premium subscription.
/// Does not include premium access from organizations.
/// Does not include premium access from organizations -
/// do not use this to check whether the user can access premium features.
/// </summary>
public bool Premium { get; set; }
public DateTime? PremiumExpirationDate { get; set; }