diff --git a/dicoogle/src/main/java/pt/ua/dicoogle/server/web/servlets/webui/WebUIServlet.java b/dicoogle/src/main/java/pt/ua/dicoogle/server/web/servlets/webui/WebUIServlet.java index 6270c9b8f..7836bbb1e 100644 --- a/dicoogle/src/main/java/pt/ua/dicoogle/server/web/servlets/webui/WebUIServlet.java +++ b/dicoogle/src/main/java/pt/ua/dicoogle/server/web/servlets/webui/WebUIServlet.java @@ -80,7 +80,7 @@ private String getPluginsBySlot(HttpServletRequest req, for (WebUIPlugin plugin : plugins) { - + String pkg = PluginController.getInstance().getWebUIPackageJSON(plugin.getName()); boolean hasUserAllowPlugin= false; for (String r:plugin.getRoles()) @@ -93,7 +93,7 @@ private String getPluginsBySlot(HttpServletRequest req, } - if (pkg != null&&(hasUserAllowPlugin||user.isAdmin())) { + if (pkg != null&&(hasUserAllowPlugin||(user!=null&&user.isAdmin()))) { pkgList.add(pkg); } }