Expose the user's last name for use in the Identity template.
This commit is contained in:
parent
4f3e29890f
commit
edfd1798ef
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue