提交 9e62579d 编写于 作者: K kohsuke

Removing the check permission.

For Hudson's system level configuration, form field validation is only used during the configuration, so it should be equal to ADMINISTER permission. IOW, there's no circumstance in Hudson where having the CHECK permission but not ADMINISTER permission is useful.

For project level configuration and things below, the permission needs to be checked against the lower-level object being configured (like Project), not Hudson. And in those cases, again the permission should equate to CONFIGURE.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9827 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b2a1d808
......@@ -31,8 +31,7 @@ import org.kohsuke.stapler.StaplerResponse;
* @author Kohsuke Kawaguchi
*/
public abstract class FormFieldValidator {
public static final Permission CHECK = new Permission(Hudson.PERMISSIONS, "check", Hudson.ADMINISTER);
public static final Permission CHECK = Hudson.ADMINISTER;
protected final StaplerRequest request;
protected final StaplerResponse response;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册