Skip to content

Commit

Permalink
[FIXED JENKINS-22828] Expect an AbstractProject for input validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Apr 30, 2014
1 parent 4371497 commit 8c76443
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 8c76443

Please sign in to comment.