From aac23d5c8c928dbbe6d5736d937cc0d3b6446359 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Mon, 15 Apr 2013 21:31:43 +0000 Subject: [PATCH] Bug 861528: $user->can_enter_product() now returns the product object instead of 1 r=glob a=LpSolit git-svn-id: svn://10.0.0.236/trunk@264830 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/User.pm | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 8377fc3223b..c56a8d3d857 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8609 \ No newline at end of file +8610 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/User.pm b/mozilla/webtools/bugzilla/Bugzilla/User.pm index 6e08ccf0e2e..943ec72476e 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/User.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/User.pm @@ -2513,7 +2513,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; @@ -2524,7 +2525,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).