show the custom dockbar buttons only if the user is logged in, useless otherwise

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@141458 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-01-04 11:07:18 +00:00
parent c5169084b4
commit a590257bb1
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
name=social-dockbar-hook
module-group-id=liferay
module-incremental-version=2
module-incremental-version=3
tags=
short-description=
change-log=

View File

@ -2,6 +2,8 @@
<%@ page import="org.gcube.common.portal.PortalContext" %>
<%
// show the custom dockbar buttons only if the user is logged in, useless otherwise
if (themeDisplay.isSignedIn()) {
PortalContext context = PortalContext.getConfiguration();
String groupName = context.getGatewayName(request);
String mySiteURL = context.getSiteLandingPagePath(request);
@ -240,3 +242,4 @@
</c:otherwise>
</c:choose>
<!-- End When phone or tablet -->
<% } %>