diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-19 00:55:59 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-19 00:55:59 +0200 |
commit | c69cbc8008696c82747b833bca5cfa2faf9c1594 (patch) | |
tree | 6611bbb98833e2081af78a454465424c1b035e05 /Bugzilla/User.pm | |
parent | 01848b6f328992497d8b25b3057893c086de7751 (diff) | |
parent | 2aecaaf29af1866367a362bbd57c6b5258d6440e (diff) | |
download | bugzilla-c69cbc8008696c82747b833bca5cfa2faf9c1594.tar.gz bugzilla-c69cbc8008696c82747b833bca5cfa2faf9c1594.tar.xz |
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla/User.pm')
-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 2c11c2381..bd7c8123b 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2493,7 +2493,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; @@ -2504,7 +2505,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). |