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 --- editcomponents.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index e66e95195..c87bc0313 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -252,7 +252,9 @@ if ($action eq 'delete') { if ($component->bug_count) { if (Bugzilla->params->{"allowbugdeletion"}) { foreach my $bug_id (@{$component->bug_ids}) { - my $bug = new Bugzilla::Bug($bug_id, $whoid); + # Note: We allow admins to delete bugs even if they can't + # see them, as long as they can see the product. + my $bug = new Bugzilla::Bug($bug_id); $bug->remove_from_db(); } } else { -- cgit v1.2.3-24-g4f1b