Implementada seguridad por URL para cada tipo de usuario.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-15 12:28:56 +01:00
parent 4dc6828257
commit b5a41958a2
2 changed files with 106 additions and 6 deletions

View File

@@ -70,9 +70,12 @@ public class SessionUtils {
else
return "";
}
public static UserType getUserType() {
HttpSession session = getSession();
return getUserType(getSession());
}
public static UserType getUserType(HttpSession session) {
if (session != null && session.getAttribute(SessionUtils.SESSION_VAR_USERTYPE) != null)
return UserType.class.cast(session.getAttribute(SessionUtils.SESSION_VAR_USERTYPE));
else