1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 01:33:20 +00:00

Support client version prerelease flag in context and LD targeting (#4994)

* Support client version prerelease flag in context and LD targeting

* Use integer instead of Boolean
This commit is contained in:
Matt Bishop
2024-11-07 16:13:57 -05:00
committed by GitHub
parent d6e624d639
commit 21b7c3b73a
4 changed files with 11 additions and 1 deletions

View File

@@ -29,12 +29,13 @@ public interface ICurrentContext
int? BotScore { get; set; }
string ClientId { get; set; }
Version ClientVersion { get; set; }
bool ClientVersionIsPrerelease { get; set; }
Task BuildAsync(HttpContext httpContext, GlobalSettings globalSettings);
Task BuildAsync(ClaimsPrincipal user, GlobalSettings globalSettings);
Task SetContextAsync(ClaimsPrincipal user);
Task<bool> OrganizationUser(Guid orgId);
Task<bool> OrganizationAdmin(Guid orgId);
Task<bool> OrganizationOwner(Guid orgId);