Fix problem with access permissions and make better wording for the new servlet
[proteocache.git] / webapp / view / support / Denied.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
4 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
8 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
9
10 <html>
11 <jsp:include page="../fragments/header.jsp" />
12 <body>
13         <div class="container">
14                 <sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_USER')">
15                         <jsp:include page="../fragments/mainmenu.jsp" />
16                 </sec:authorize>
17                 <sec:authorize access="!hasAnyRole('ROLE_ADMIN','ROLE_USER')">
18                         <jsp:include page="../fragments/publicmenu.jsp" />
19                 </sec:authorize>
20
21                 <div class="panel panel-default">
22                         <div class="panel-heading">
23                                 <div style="font-weight:bold;">The page is not available...</div>
24                         </div>
25                         <div class="panel-body">
26                                 <p>You don'h have enough permissions to view the page</p>
27                         </div>
28                 </div>
29
30                 <jsp:include page="../fragments/footer.jsp" />
31         </div>
32 </body>
33 </html>