From cc69d134483d1e10423475735b1084535dd075b7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 12 Aug 2006 06:45:07 +0000 Subject: Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new Patch By Max Kanat-Alexander r=LpSolit, a=myk --- editproducts.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 432e2a9c6..4c4394926 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -373,7 +373,9 @@ if ($action eq 'delete') { if ($product->bug_count) { if (Bugzilla->params->{"allowbugdeletion"}) { foreach my $bug_id (@{$product->bug_ids}) { - my $bug = new Bugzilla::Bug($bug_id, $whoid); + # Note that we allow the user to delete bugs he can't see, + # which is okay, because he's deleting the whole Product. + my $bug = new Bugzilla::Bug($bug_id); $bug->remove_from_db(); } } -- cgit v1.2.3-24-g4f1b