Skip to content

Commit

Permalink
Make both [org] and [ORG] work in policy.xml
Browse files Browse the repository at this point in the history
Mirror the change in Altinn/altinn-studio#11547
  • Loading branch information
ivarne committed May 9, 2024
1 parent 69deb8d commit 3fae0b2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public async Task<XacmlPolicy> GetPolicyAsync(XacmlContextRequest request)
if (app != null && org != null)
{
string policyString = await _localApp.GetXACMLPolicy($"{org}/{app}");
policyString = policyString.Replace("[ORG]", org).Replace("[APP]", app);
policyString = policyString
.Replace("[org]", org)
.Replace("[ORG]", org)
.Replace("[app]", app)
.Replace("[APP]", app);
return ParsePolicyContent(policyString);
}
else
Expand Down

0 comments on commit 3fae0b2

Please sign in to comment.