summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-12 11:08:54 +0200
committerlpsolit%gmail.com <>2005-10-12 11:08:54 +0200
commit2ecd676f8e8154f6364a3a158013250695ed9251 (patch)
treea5444c151d610a2d8a4751b4ffde88739624a259 /enter_bug.cgi
parent6e549ec68c0893d8eba685a5d1a4eb151752a07d (diff)
downloadbugzilla-2ecd676f8e8154f6364a3a158013250695ed9251.tar.gz
bugzilla-2ecd676f8e8154f6364a3a158013250695ed9251.tar.xz
Bug 306325: Move CanEnterProduct() and CanEnterProductOrWarn() out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel r=wicked a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi6
1 files changed, 3 insertions, 3 deletions
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();