Skip to content

Commit

Permalink
SAK-29787 Remove covers from /alias
Browse files Browse the repository at this point in the history
  • Loading branch information
buckett committed Aug 8, 2015
1 parent cddae3e commit abbeb81
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import org.sakaiproject.alias.api.AliasEdit;
import org.sakaiproject.alias.api.AliasService;
import org.sakaiproject.authz.cover.SecurityService;
import org.sakaiproject.authz.api.SecurityService;
import org.sakaiproject.cheftool.Context;
import org.sakaiproject.cheftool.JetspeedRunData;
import org.sakaiproject.cheftool.PagedResourceActionII;
Expand Down Expand Up @@ -72,9 +72,11 @@ public class AliasesAction extends PagedResourceActionII
private static ResourceLoader rb = new ResourceLoader("admin");

private AliasService aliasService;
private SecurityService securityService;

public AliasesAction() {
aliasService = ComponentManager.get(AliasService.class);
securityService = ComponentManager.get(SecurityService.class);
}

protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
Expand Down Expand Up @@ -109,7 +111,7 @@ public String buildMainPanelContext(VelocityPortlet portlet, Context context, Ru
String template = null;

// if not logged in as the super user, we won't do anything
if (!SecurityService.isSuperUser())
if (!securityService.isSuperUser())
{
return (String) getContext(rundata).get("template") + "_noaccess";
}
Expand Down

0 comments on commit abbeb81

Please sign in to comment.