forked from lix-project/hydra
fix bug reported by ludo (log in, non-admin) on project overview page
This commit is contained in:
parent
d0ba7678d5
commit
1df83d52f8
|
@ -193,7 +193,7 @@ sub findLastJobForBuilds {
|
|||
|
||||
sub jobsetOverview {
|
||||
my ($c, $project) = @_;
|
||||
return $project->jobsets->search( isProjectOwner($c, $project->name) ? {} : { hidden => 0 },
|
||||
return $project->jobsets->search( isProjectOwner($c, $project) ? {} : { hidden => 0 },
|
||||
{ order_by => "name"
|
||||
, "+select" => [
|
||||
"(SELECT COUNT(*) FROM Builds AS a NATURAL JOIN BuildSchedulingInfo WHERE me.project = a.project AND me.name = a.jobset AND a.isCurrent = 1 )"
|
||||
|
|
Loading…
Reference in a new issue