Skip to content

Commit

Permalink
SAK-43849: copyright alert demo displays velocity syntax (sakaiprojec…
Browse files Browse the repository at this point in the history
  • Loading branch information
bjones86 authored Jun 26, 2020
1 parent dd7a3c8 commit 37d0155
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public SecurityAdvice isAllowed(String userId, String function, String reference
}

setVmReference("validator", new Validator(), req);
setVmReference("formattedText", formattedText, req);
setVmReference("props", props, req);
setVmReference("tlang", rb, req);

Expand Down Expand Up @@ -438,6 +439,7 @@ protected void respondCopyrightAlertDemo(HttpServletRequest req, HttpServletResp
ResourceProperties props = new BaseResourceProperties();
setVmReference("props", props, req);
setVmReference("validator", new Validator(), req);
setVmReference("formattedText", formattedText, req);
setVmReference("sample", Boolean.TRUE.toString(), req);
setVmReference("tlang", rb, req);
res.setContentType("text/html; charset=UTF-8");
Expand Down

0 comments on commit 37d0155

Please sign in to comment.