diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 42accac0..75284c10 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -92,7 +92,9 @@ sub jobset_PUT { sub jobset_DELETE { my ($self, $c) = @_; - requireProjectOwner($c, $c->stash->{project}); + #requireProjectOwner($c, $c->stash->{project}); + + requireAdmin($c); if (length($c->stash->{project}->declfile)) { error($c, "can't modify jobset of declarative project", 403); diff --git a/src/root/jobset.tt b/src/root/jobset.tt index 33139c74..9cf1202a 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -51,7 +51,9 @@