From 2ecd676f8e8154f6364a3a158013250695ed9251 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 12 Oct 2005 09:08:54 +0000 Subject: Bug 306325: Move CanEnterProduct() and CanEnterProductOrWarn() out of globals.pl - Patch by Frédéric Buclin r=joel r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enter_bug.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 1540209fe..e2772ccec 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -84,7 +84,7 @@ if (!defined $product || $product eq "") { foreach my $classification (@$classifications) { my $found = 0; foreach my $p (@enterable_products) { - if (CanEnterProduct($p) + if (Bugzilla->user->can_enter_product($p) && IsInClassification($classification->{name},$p)) { $found = 1; } @@ -116,7 +116,7 @@ if (!defined $product || $product eq "") { my %products; foreach my $p (@enterable_products) { - if (CanEnterProduct($p)) { + if (Bugzilla->user->can_enter_product($p)) { if (IsInClassification(scalar $cgi->param('classification'),$p) || $cgi->param('classification') eq "__all") { $products{$p} = $::proddesc{$p}; @@ -328,7 +328,7 @@ if ($cloned_bug_id) { # We need to check and make sure # that the user has permission to enter a bug against this product. -CanEnterProductOrWarn($product); +Bugzilla->user->can_enter_product($product, 1); GetVersionTable(); -- cgit v1.2.3-24-g4f1b