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

MyView only makes sense when the security is enabled.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14120 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bf44eeeb
......@@ -77,6 +77,15 @@ public class MyView extends View {
super(MyView.class);
}
/**
* If the security is not enabled, there's no point in having
* this type of views.
*/
@Override
public boolean isInstantiable() {
return Hudson.getInstance().isUseSecurity();
}
public String getDisplayName() {
return Messages.MyView_DisplayName();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册