aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/pages/userIndex.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/pages/userIndex.jsp')
-rw-r--r--src/main/webapp/pages/userIndex.jsp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/webapp/pages/userIndex.jsp b/src/main/webapp/pages/userIndex.jsp
index e54c742..b06d966 100644
--- a/src/main/webapp/pages/userIndex.jsp
+++ b/src/main/webapp/pages/userIndex.jsp
@@ -21,6 +21,12 @@
</style>
</head>
<body>
+<%
+boolean isAdmin=(Boolean)session.getAttribute("admin");
+if(isAdmin){
+ response.sendRedirect("../index.jsp");
+}
+%>
<a href="logout.jsp">
<button>Log out</button>
</a>