Here i am writing example code which is used to check that the signedIn User is having the Administrator Role or Not
<%@page import="com.liferay.portal.
long companyId = themeDisplay.getCompanyId();
Role roleAdmin = RoleLocalServiceUtil.getRole(companyId, "Administrator");
if(RoleLocalServiceUtil.
}
The Above Code is to check that the SignedIn User is having 'Administrator' Role or Not
No comments:
Post a Comment