security.ftl 209 B

1234567891011121314
  1. <#assign
  2. know = user??
  3. >
  4. <#if know>
  5. <#assign
  6. name = user.getUsername()
  7. isAdmin = user.isAdmin()
  8. >
  9. <#else>
  10. <#assign
  11. name = "unknown"
  12. isAdmin = false
  13. >
  14. </#if>