aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-08 02:56:04 +0000
committerlpsolit%gmail.com <>2006-05-08 02:56:04 +0000
commit46c78a8c7c42bfdf47ee1f68939aa122371b9662 (patch)
treedc1bdd83e350c3da2b8f7bc5d7d0e79a2569499d /Bugzilla
parent0aeb1349243e6996a7a53e9faf01ac8d13e9e9b3 (diff)
downloadbugs-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar
bugs-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar.gz
bugs-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar.bz2
bugs-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar.xz
bugs-46c78a8c7c42bfdf47ee1f68939aa122371b9662.zip
Bug 332521: Remove GroupIdToName() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm4
-rw-r--r--Bugzilla/FlagType.pm4
2 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 97d8e8c7c..9d55fcf33 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -374,12 +374,12 @@ sub validate {
# and can rerequest set flags.
next if (($status eq 'X' || $status eq '?')
&& (!$flag->{type}->{request_gid}
- || $user->in_group(&::GroupIdToName($flag->{type}->{request_gid}))));
+ || $user->in_group_id($flag->{type}->{request_gid})));
# - User in the $grant_gid group can set/clear flags,
# including "+" and "-"
next if (!$flag->{type}->{grant_gid}
- || $user->in_group(&::GroupIdToName($flag->{type}->{grant_gid})));
+ || $user->in_group_id($flag->{type}->{grant_gid}));
# - Any other flag modification is denied
ThrowUserError("flag_update_denied",
diff --git a/Bugzilla/FlagType.pm b/Bugzilla/FlagType.pm
index b18c4a2de..313006377 100644
--- a/Bugzilla/FlagType.pm
+++ b/Bugzilla/FlagType.pm
@@ -431,12 +431,12 @@ sub validate {
# Make sure the user is authorized to modify flags, see bug 180879
# - User in the $grant_gid group can set flags, including "+" and "-"
next if (!$flag_type->{grant_gid}
- || $user->in_group(&::GroupIdToName($flag_type->{grant_gid})));
+ || $user->in_group_id($flag_type->{grant_gid}));
# - User in the $request_gid group can request flags
next if ($status eq '?'
&& (!$flag_type->{request_gid}
- || $user->in_group(&::GroupIdToName($flag_type->{request_gid}))));
+ || $user->in_group_id($flag_type->{request_gid})));
# - Any other flag modification is denied
ThrowUserError("flag_update_denied",