NIHVIVO-3523 Oops. Some of the JSPs were using those RequestedAction classes that I converted to SimplePermissions.

This commit is contained in:
j2blake 2011-12-21 23:02:31 +00:00
parent 8ba596bfae
commit 94a2d9327c
38 changed files with 85 additions and 75 deletions

View file

@ -9,10 +9,10 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ 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.auth.permissions.SimplePermission" %>
<%
if (PolicyHelper.isAuthorizedForActions(request, new UseMiscellaneousEditorPages())) {
if (PolicyHelper.isAuthorizedForActions(request, SimplePermission.USE_MISCELLANEOUS_EDITOR_PAGES.ACTIONS)) {
request.setAttribute("isEditor", Boolean.TRUE);
}
%>