Remove inappropriate references to LoginStatusBean from JSPs.
This commit is contained in:
parent
17b94a3a88
commit
54944917ac
2 changed files with 3 additions and 28 deletions
|
@ -1,11 +1,6 @@
|
||||||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||||
|
|
||||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.identifier.IdentifierBundle" %>
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.identifier.RequestIdentifiers" %>
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.identifier.SelfEditingIdentifierFactory" %>
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyHelper" %>
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.requestedAction.usepages.UseMiscellaneousEditorPages" %>
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.DataProperty" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.DataProperty" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.KeywordProperty" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.KeywordProperty" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Individual" %>
|
||||||
|
@ -18,30 +13,9 @@
|
||||||
<%@ page import="java.util.ArrayList" %>
|
<%@ page import="java.util.ArrayList" %>
|
||||||
<%@ page import="org.apache.commons.logging.Log" %>
|
<%@ page import="org.apache.commons.logging.Log" %>
|
||||||
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %>
|
|
||||||
<%!
|
<%!
|
||||||
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.edit.dashboardPropsList.jsp");
|
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.edit.dashboardPropsList.jsp");
|
||||||
%>
|
%>
|
||||||
<%
|
|
||||||
boolean showSelfEdits=false;
|
|
||||||
boolean showCuratorEdits=false;
|
|
||||||
|
|
||||||
IdentifierBundle ids = RequestIdentifiers.getIdBundleForRequest(request);
|
|
||||||
String editorUri = SelfEditingIdentifierFactory.getSelfEditingUri(ids);
|
|
||||||
if (editorUri != null) {
|
|
||||||
showSelfEdits=true;
|
|
||||||
log.debug("self editing active");
|
|
||||||
} else {
|
|
||||||
log.debug("self editing inactive");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PolicyHelper.isAuthorizedForActions(request, new UseMiscellaneousEditorPages())) {
|
|
||||||
showCuratorEdits=true;
|
|
||||||
log.debug("curator editing active");
|
|
||||||
} else {
|
|
||||||
log.debug("curator editing inactive");
|
|
||||||
}
|
|
||||||
%>
|
|
||||||
|
|
||||||
<c:set var='entity' value='${requestScope.entity}'/><%-- just moving this into page scope for easy use --%>
|
<c:set var='entity' value='${requestScope.entity}'/><%-- just moving this into page scope for easy use --%>
|
||||||
<%
|
<%
|
||||||
|
|
|
@ -8,10 +8,11 @@
|
||||||
version="2.0"> */ %>
|
version="2.0"> */ %>
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||||
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
|
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
|
||||||
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %>
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyHelper" %>
|
||||||
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.authrequestedAction.usepages.UseMiscellaneousEditorPages" %>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
if (LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.EDITOR)) {
|
if (PolicyHelper.isAuthorizedForActions(new UseMiscellaneousEditorPages())) {
|
||||||
request.setAttribute("isEditor", Boolean.TRUE);
|
request.setAttribute("isEditor", Boolean.TRUE);
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue