提交 52a64c19 编写于 作者: K kohsuke

fixed #413.

Making the parameter boolean causes JEXL to fail to invoke the method, because the third parameter is usually "true" in String.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2905 71c3de6d-444a-0410-be80-ed276b4c234a
上级 382b92df
......@@ -331,8 +331,8 @@ public class Functions {
return Util.encode(s);
}
public static void adminCheck(StaplerRequest req, StaplerResponse rsp,boolean required) throws IOException, ServletException {
if(required && !Hudson.adminCheck(req,rsp)) {
public static void adminCheck(StaplerRequest req, StaplerResponse rsp, Object required) throws IOException, ServletException {
if(required!=null && !Hudson.adminCheck(req,rsp)) {
// check failed
throw new ServletException("Unauthorized access");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册