identity: fix user subscription claim value incorrect for legacy pro users

This commit is contained in:
Abdullah Atta committed 2025-10-13 11:27:07 +05:00
1 parent 131df3df04
commit d1421d640f
8 files changed
+44 -131

No files matched your search

@@ -109,7 +109,7 @@ namespace Streetwriters.Identity.Controllers
await UserManager.AddToRoleAsync(user, client.Id);
if (Constants.IS_SELF_HOSTED)
{
await UserManager.AddClaimAsync(user, UserService.SubscriptionPlanToClaim(client.Id, SubscriptionPlan.BELIEVER));
await UserManager.AddClaimAsync(user, new Claim(UserService.GetClaimKey(client.Id), "believer"));
}
else
{