Skip to content

Commit

Permalink
Make both [org] and [ORG] work in policy.xml (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarne authored May 14, 2024
1 parent 9323f0b commit 15abdee
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 15abdee

Please sign in to comment.