From: Frédéric Buclin Date: Mon, 15 Apr 2013 21:26:09 +0000 (+0200) Subject: Bug 861528: $user->can_enter_product() now returns the product object instead of 1 X-Git-Tag: bugzilla-4.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03eaf1fd808f7e9651dcd5f13f981db7fd09c157;p=thirdparty%2Fbugzilla.git Bug 861528: $user->can_enter_product() now returns the product object instead of 1 r=glob a=LpSolit --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index d2cf55dd96..c787e0332d 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2465,7 +2465,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; @@ -2476,7 +2477,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).