Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed: wflow-core - Current User Hash Variable - Display empty when u…

…ser is anonymous.

git-svn-id: http://dev.joget.org/svn/jw-community/trunk@434 1bff935d-2fe2-40b7-b00f-c2aca69a7612
  • Loading branch information...
commit f7311f3091444f6ae8392e10c03057833c2256e3 1 parent a048f95
owen authored
4 wflow-core/src/main/java/org/joget/apps/app/lib/CurrentUserHashVariable.java
@@ -20,6 +20,10 @@ public String processHashVariable(String variableKey) {
20 20 String username = workflowUserManager.getCurrentUsername();
21 21 String attribute = variableKey;
22 22
  23 + if (WorkflowUserManager.ROLE_ANONYMOUS.equals(username)) {
  24 + return "";
  25 + }
  26 +
23 27 return getUserAttribute(username, attribute);
24 28 }
25 29

0 comments on commit f7311f3

Please sign in to comment.
Something went wrong with that request. Please try again.