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); } }