From 92eab92efb1158b94fd6ce283a92191656649b85 Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Thu, 22 Dec 2022 04:22:48 +0100 Subject: Dodate provere role korisnika. Dodat prikaz pokemona kod admina. --- src/main/webapp/pages/userIndex.jsp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/webapp/pages/userIndex.jsp') 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 @@ +<% +boolean isAdmin=(Boolean)session.getAttribute("admin"); +if(isAdmin){ + response.sendRedirect("../index.jsp"); +} +%> -- cgit v1.2.3