Skip to content
Browse files

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...
1 parent a048f95 commit f7311f3091444f6ae8392e10c03057833c2256e3 owen committed Jul 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 wflow-core/src/main/java/org/joget/apps/app/lib/CurrentUserHashVariable.java
View
4 wflow-core/src/main/java/org/joget/apps/app/lib/CurrentUserHashVariable.java
@@ -20,6 +20,10 @@ public String processHashVariable(String variableKey) {
String username = workflowUserManager.getCurrentUsername();
String attribute = variableKey;
+ if (WorkflowUserManager.ROLE_ANONYMOUS.equals(username)) {
+ return "";
+ }
+
return getUserAttribute(username, attribute);
}

0 comments on commit f7311f3

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