Skip to content

Commit

Permalink
Merge pull request #36 from daniel-beck/JENKINS-22828
Browse files Browse the repository at this point in the history
[FIXED JENKINS-22828] Expect an AbstractProject for input validation.
  • Loading branch information
ikedam committed May 3, 2014
2 parents 4371497 + 8c76443 commit 59d7982
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -387,7 +387,7 @@ private boolean perform(Run src, AbstractBuild<?,?> dst, String expandedFilter,
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

public FormValidation doCheckProjectName(
@AncestorInPath AbstractItem anc, @QueryParameter String value) {
@AncestorInPath AbstractProject anc, @QueryParameter String value) {
// Require CONFIGURE permission on this project
if (!anc.hasPermission(Item.CONFIGURE)) return FormValidation.ok();
FormValidation result;
Expand Down

0 comments on commit 59d7982

Please sign in to comment.