summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-04-15 23:25:08 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-04-15 23:25:08 +0200
commitc3b6bc6e25fff9a263d6b4208e09dd8494d4034c (patch)
tree8dc6c88184e0c94481a33fa5816e95a5bbc6ec2e /Bugzilla/User.pm
parenta0cd549d4a62a6f46544c0377f8cba20f84495e6 (diff)
downloadbugzilla-c3b6bc6e25fff9a263d6b4208e09dd8494d4034c.tar.gz
bugzilla-c3b6bc6e25fff9a263d6b4208e09dd8494d4034c.tar.xz
Bug 861528: $user->can_enter_product() now returns the product object instead of 1
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 6e08ccf0e..943ec7247 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -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).