From a58bb6192b0ceab18042da53785af339834cbbfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 15 Apr 2013 23:28:14 +0200 Subject: [PATCH] Bug 861528: $user->can_enter_product() now returns the product object instead of 1 r=glob a=LpSolit --- Bugzilla/User.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index e16dce002d..861970cf80 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2255,7 +2255,8 @@ the database again. Used mostly by L. =item C - 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. 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). -- 2.47.3