]> 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:28:14 +0000 (23:28 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 15 Apr 2013 21:28:14 +0000 (23:28 +0200)
r=glob a=LpSolit

Bugzilla/User.pm

index e16dce002dbed52dcf6e6c56be5cce9e80553675..861970cf80796ab7157027d85557614d58cbc5fe 100644 (file)
@@ -2255,7 +2255,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;
@@ -2266,7 +2267,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).