mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
PM-11123: Device Type mapping (#4768)
* PM-11123: Device Type mapping * PM-11123: Moving ClientType out of NotificationCenter, naming clash with Identity ClientType * PM-11123: Rename ClientType in ICurrentContext to match the type
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Bit.Core.Context;
|
||||
using Bit.Core.Identity;
|
||||
using Bit.Core.Settings;
|
||||
using Bit.Core.Utilities;
|
||||
using LaunchDarkly.Logging;
|
||||
@ -153,9 +154,9 @@ public class LaunchDarklyFeatureService : IFeatureService
|
||||
|
||||
var builder = LaunchDarkly.Sdk.Context.MultiBuilder();
|
||||
|
||||
switch (_currentContext.ClientType)
|
||||
switch (_currentContext.IdentityClientType)
|
||||
{
|
||||
case Identity.ClientType.User:
|
||||
case IdentityClientType.User:
|
||||
{
|
||||
ContextBuilder ldUser;
|
||||
if (_currentContext.UserId.HasValue)
|
||||
@ -182,7 +183,7 @@ public class LaunchDarklyFeatureService : IFeatureService
|
||||
}
|
||||
break;
|
||||
|
||||
case Identity.ClientType.Organization:
|
||||
case IdentityClientType.Organization:
|
||||
{
|
||||
if (_currentContext.OrganizationId.HasValue)
|
||||
{
|
||||
@ -196,7 +197,7 @@ public class LaunchDarklyFeatureService : IFeatureService
|
||||
}
|
||||
break;
|
||||
|
||||
case Identity.ClientType.ServiceAccount:
|
||||
case IdentityClientType.ServiceAccount:
|
||||
{
|
||||
if (_currentContext.UserId.HasValue)
|
||||
{
|
||||
|
Reference in New Issue
Block a user