summaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-12 08:45:07 +0200
committermkanat%bugzilla.org <>2006-08-12 08:45:07 +0200
commitcc69d134483d1e10423475735b1084535dd075b7 (patch)
tree4e440861d3302bdacea97fd64ae477acf12bd6d8 /editcomponents.cgi
parentb7358c827a981c240e925b5a547dfb7bcdfc6738 (diff)
downloadbugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.gz
bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.xz
Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi4
1 files changed, 3 insertions, 1 deletions
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 {