mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
fix org id bug in profile service
This commit is contained in:
parent
50062d5e33
commit
67c0243f77
@ -69,19 +69,19 @@ namespace Bit.Api.IdentityServer
|
||||
case Core.Enums.OrganizationUserType.Owner:
|
||||
foreach(var org in group)
|
||||
{
|
||||
newClaims.Add(new Claim("orgowner", org.Id.ToString()));
|
||||
newClaims.Add(new Claim("orgowner", org.OrganizationId.ToString()));
|
||||
}
|
||||
break;
|
||||
case Core.Enums.OrganizationUserType.Admin:
|
||||
foreach(var org in group)
|
||||
{
|
||||
newClaims.Add(new Claim("orgadmin", org.Id.ToString()));
|
||||
newClaims.Add(new Claim("orgadmin", org.OrganizationId.ToString()));
|
||||
}
|
||||
break;
|
||||
case Core.Enums.OrganizationUserType.User:
|
||||
foreach(var org in group)
|
||||
{
|
||||
newClaims.Add(new Claim("orguser", org.Id.ToString()));
|
||||
newClaims.Add(new Claim("orguser", org.OrganizationId.ToString()));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user