diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-15 23:27:10 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-15 23:27:10 +0200 |
commit | 6b393ecc304b3c239eb0399b53e0c69b918b2334 (patch) | |
tree | 3c46699d4c0bece517d112ca84378bd272400b43 | |
parent | Bug 860723: Custom fields are shown twice in report axis selectors (diff) | |
download | bugzilla-6b393ecc304b3c239eb0399b53e0c69b918b2334.tar.gz bugzilla-6b393ecc304b3c239eb0399b53e0c69b918b2334.tar.bz2 bugzilla-6b393ecc304b3c239eb0399b53e0c69b918b2334.zip |
Bug 861528: $user->can_enter_product() now returns the product object instead of 1
r=glob a=LpSolit
-rw-r--r-- | Bugzilla/User.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 1bd101a92..878daea60 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2428,7 +2428,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; @@ -2439,7 +2440,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). |