Skip to content

Commit

Permalink
Do not fetch person attribute types without authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Sep 11, 2020
1 parent 862e54a commit 8ad37b6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ public void prepare() throws JspTagException {
viewType = ATTR_VIEW_TYPE.valueOf(getDisplayType());
}

List<PersonAttributeType> types = ps.getPersonAttributeTypes(personType, viewType);
if (Context.isAuthenticated()) {
List<PersonAttributeType> types = ps.getPersonAttributeTypes(personType, viewType);

attrTypes = types.iterator();
}

attrTypes = types.iterator();
setVarStatus("varStatus");

}
Expand Down

0 comments on commit 8ad37b6

Please sign in to comment.