From 67c0243f7763cb0280a1def6d28cee52d29ede40 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 5 Apr 2017 17:39:48 -0400 Subject: [PATCH] fix org id bug in profile service --- src/Api/IdentityServer/ProfileService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/IdentityServer/ProfileService.cs b/src/Api/IdentityServer/ProfileService.cs index 4ab4f34be..4276b11de 100644 --- a/src/Api/IdentityServer/ProfileService.cs +++ b/src/Api/IdentityServer/ProfileService.cs @@ -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: