Skip to content
Snippets Groups Projects
Commit e7db6fbb authored by John Watkins's avatar John Watkins
Browse files

fixed logout when not a superadmin

parent ffb47701
No related branches found
No related tags found
1 merge request!114LoggingService service class, new method to add a log to the "Logs" table when...
......@@ -143,7 +143,9 @@ public class JWTUtils {
}
public void logOutUser(HttpSession session){
if ((boolean) session.getAttribute("superAdmin")) {
if (session.getAttribute("superAdmin") == null) {
setSuperAdmin(session, false);
} else if ((boolean) session.getAttribute("superAdmin")) {
setSuperAdmin(session, false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment