提交 b3a0dfc8 编写于 作者: K kohsuke

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
上级 ddf3344f
......@@ -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);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册