From 5603ddddd99eeb7798122dd24765b2958d24f119 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 26 Jun 2008 23:21:45 +0000 Subject: [PATCH] Don't know exactly when this assertion error happens, but I still see reports from people. So ultimately delegating this to the Hudson object. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10447 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Functions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 6cd097331a..d62070e9df 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -470,7 +470,7 @@ public class Functions { return; } } - throw new AssertionError(); // ancestor must include Hudson, which is AccessControlled. + checkPermission(Hudson.getInstance(),permission); } }