Skip to content

Commit

Permalink
Added LegacyId support to Expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
gumbarros committed Jan 7, 2025
1 parent a0cb1e1 commit 4da187d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/DataManager/Expressions/ExpressionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public class ExpressionParser(IHttpContext httpContext, ILogger<ExpressionParser
case "userid":
parsedValue = DataHelper.GetCurrentUserId(httpContext, userValues!);
break;
case "legacyid":
parsedValue = httpContext.User.Claims.FirstOrDefault(claim => claim.Type == "LegacyId")?.Value;
break;
default:
{
if(userValues != null && userValues.TryGetValue(field, out var value))
Expand Down

0 comments on commit 4da187d

Please sign in to comment.