falling back to the bundled permission was a bad idea. Admin would do.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6425 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-12-27 02:34:42 +00:00
1 parent ddf3344f89
commit b3a0dfc81f
1 file changed
+1 -2
+1 -2
View File
@@ -2135,8 +2135,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
* Define a custom {@link Permission} and check against ACL.
*/
public static boolean isAdmin() {
return !getInstance().isUseSecurity()
|| Hudson.getInstance().getACL().hasPermission(Permission.FULL_CONTROL);
return Hudson.getInstance().getACL().hasPermission(ADMINISTER);
}
/**