提交 1a5a10f9 编写于 作者: K kohsuke

OMG. Fixed in 1.229. I'll post 1.229 today.

[FIXED HUDSON-1936] Start-up "Hudson is preparing to work" screen doesn't render with AssertionFailure.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10377 71c3de6d-444a-0410-be80-ed276b4c234a
上级 065e0b69
......@@ -456,6 +456,9 @@ public class Functions {
* Otherwise it will perform no check and that problem is hard to notice.
*/
public static void checkPermission(Object object, Permission permission) throws IOException, ServletException {
if (permission == null)
return;
if (object instanceof AccessControlled)
checkPermission((AccessControlled) object,permission);
else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册