]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 861528: $user->can_enter_product() now returns the product object instead of 1
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 15 Apr 2013 21:26:09 +0000 (23:26 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 15 Apr 2013 21:26:09 +0000 (23:26 +0200)
r=glob a=LpSolit

Bugzilla/User.pm

index d2cf55dd963038a754634e26240c30e7ebcc0082..c787e0332d5ce0b0c248dfa194b81852b80fedc3 100644 (file)
@@ -2465,7 +2465,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;
@@ -2476,7 +2477,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).