List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE
String ADD_LAYOUT_PROTOTYPE
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys ADD_LAYOUT_PROTOTYPE.
Click Source Link
From source file:com.liferay.layout.prototype.web.internal.display.context.LayoutPrototypeDisplayContext.java
License:Open Source License
public boolean isShowAddButton() { ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY); if (PortalPermissionUtil.contains(themeDisplay.getPermissionChecker(), ActionKeys.ADD_LAYOUT_PROTOTYPE)) { return true; }/*from www. j a v a 2 s. c om*/ return false; }