NIHVIVO-736 transitioning from LoginFormBean to LoginStatusBean.

This commit is contained in:
jeb228 2010-10-08 19:10:44 +00:00
parent 660775ed54
commit 172f7589c1
8 changed files with 16 additions and 18 deletions

View file

@ -2,13 +2,13 @@
<%@page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
<%@page import="edu.cornell.mannlib.vedit.beans.LoginFormBean"%>
<%@page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
if (session == null || !LoginFormBean.loggedIn(request, LoginFormBean.DBA)) {
if (!LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.DBA)) {
%><c:redirect url="<%= Controllers.LOGIN %>" /><%
}