Commit c3b6bc6e authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 861528: $user->can_enter_product() now returns the product object instead of 1

r=glob a=LpSolit
parent a0cd549d
......@@ -2513,7 +2513,8 @@ the database again. Used mostly by L<Bugzilla::Product>.
=item C<can_enter_product($product_name, $warn)>
Description: Returns 1 if the user can enter bugs into the specified product.
Description: Returns a product object if the user can enter bugs into the
specified product.
If the user cannot enter bugs into the product, the behavior of
this method depends on the value of $warn:
- if $warn is false (or not given), a 'false' value is returned;
......@@ -2524,7 +2525,7 @@ the database again. Used mostly by L<Bugzilla::Product>.
must be thrown if the user cannot enter bugs
into the specified product.
Returns: 1 if the user can enter bugs into the product,
Returns: A product object if the user can enter bugs into the product,
0 if the user cannot enter bugs into the product and if $warn
is false (an error is thrown if $warn is true).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment