To check whether logged in user belong to admin group check the following in your Theme's any of the dynamic jsp (eg: navigation.jsp, footer.jsp and so on)
<c:set var="admin" value="<%=com.ibm.portal.ac.data.RoleType.ADMIN%>"/>
<c:if test="${wp.ac[wp.selectionModel.selected].hasPermission[admin]}">
//if admin
</c:if>
Role Types
The com.ibm.portal.ac.data.RoleType object shown above exposes the following RoleType constants:
ADMIN
SECURITY_ADMIN
DELEGATOR
CAN_RUN_AS_USER
MANAGER
EDITOR
MARKUP_EDITOR
CONTRIBUTOR
PRIVILEGED_USER
USER
For more information Click Here
<c:set var="admin" value="<%=com.ibm.portal.ac.data.RoleType.ADMIN%>"/>
<c:if test="${wp.ac[wp.selectionModel.selected].hasPermission[admin]}">
//if admin
</c:if>
Role Types
The com.ibm.portal.ac.data.RoleType object shown above exposes the following RoleType constants:
ADMIN
SECURITY_ADMIN
DELEGATOR
CAN_RUN_AS_USER
MANAGER
EDITOR
MARKUP_EDITOR
CONTRIBUTOR
PRIVILEGED_USER
USER
For more information Click Here
No comments:
Post a Comment