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:
parent
c5169084b4
commit
a590257bb1
|
@ -1,6 +1,6 @@
|
||||||
name=social-dockbar-hook
|
name=social-dockbar-hook
|
||||||
module-group-id=liferay
|
module-group-id=liferay
|
||||||
module-incremental-version=2
|
module-incremental-version=3
|
||||||
tags=
|
tags=
|
||||||
short-description=
|
short-description=
|
||||||
change-log=
|
change-log=
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
<%@ page import="org.gcube.common.portal.PortalContext" %>
|
<%@ 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();
|
PortalContext context = PortalContext.getConfiguration();
|
||||||
String groupName = context.getGatewayName(request);
|
String groupName = context.getGatewayName(request);
|
||||||
String mySiteURL = context.getSiteLandingPagePath(request);
|
String mySiteURL = context.getSiteLandingPagePath(request);
|
||||||
|
@ -240,3 +242,4 @@
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
<!-- End When phone or tablet -->
|
<!-- End When phone or tablet -->
|
||||||
|
<% } %>
|
Loading…
Reference in New Issue