VIVO-541 Add a link on the Site Admin page to activate the developer panel.

This commit is contained in:
j2blake 2013-11-19 16:45:13 -05:00
parent 025f2dd8ec
commit b3c5892679
5 changed files with 19 additions and 4 deletions

View file

@ -73,6 +73,10 @@ public class BaseSiteAdminController extends FreemarkerHttpServlet {
urls.put("rebuildSearchIndex", UrlBuilder.getUrl("/SearchIndex"));
}
if (PolicyHelper.isAuthorizedForActions(vreq, SimplePermission.ENABLE_DEVELOPER_PANEL.ACTIONS)) {
urls.put("activateDeveloperPanel", "javascript:new DeveloperPanel(developerAjaxUrl).setupDeveloperPanel({developerEnabled: true});");
}
return urls;
}