Expose the user's last name for use in the Identity template.

This commit is contained in:
j2blake 2011-06-14 20:00:33 +00:00
parent 4f3e29890f
commit edfd1798ef

View file

@ -49,6 +49,14 @@ public class User extends BaseTemplateModel {
} }
} }
public String getLastName() {
if (currentUser == null) {
return "";
} else {
return currentUser.getLastName();
}
}
public boolean getHasSiteAdminAccess() { public boolean getHasSiteAdminAccess() {
return PolicyHelper.isAuthorizedForActions(vreq, SiteAdminController.REQUIRED_ACTIONS); return PolicyHelper.isAuthorizedForActions(vreq, SiteAdminController.REQUIRED_ACTIONS);
} }