1
0
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:
Kyle Spearrin 2017-04-05 17:39:48 -04:00
parent 50062d5e33
commit 67c0243f77

View File

@ -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: