diff options
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 9a4860409..b9d63b3fe 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -79,11 +79,10 @@ $template->process($format->{'template'}, $vars, \$comment) ValidateComment($comment); # Check that the product exists and that the user -# is allowed to submit bugs in this product. +# is allowed to enter bugs into this product. my $product = $cgi->param('product'); -if (!CanEnterProduct($product)) { - ThrowUserError("entry_access_denied", {product => $product}); -} +CanEnterProductOrWarn($product); + my $product_id = get_product_id($product); # Set cookies |