Add LDAP authentication and enabling Spring logging
[proteocache.git] / webapp / view / help / Overview.jsp
index 37b3eb4..1be9ef3 100644 (file)
@@ -6,13 +6,18 @@
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
-<%@page import="java.util.ArrayList"%>
+<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
 
 <html>
 <jsp:include page="../fragments/header.jsp" />
 <body>
        <div class="container">
-       <jsp:include page="../fragments/mainmenu.jsp" />
+       <sec:authorize access="!isAuthenticated()">
+               <jsp:include page="../fragments/publicmenu.jsp" />
+       </sec:authorize>
+               <sec:authorize access="isAuthenticated()">
+               <jsp:include page="../fragments/mainmenu.jsp" />
+       </sec:authorize>
 
        <div class="panel panel-default">
                <div class="panel-heading">