From 7d677ece7d55266f63924bc64cf2190df7c785a0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 4 Sep 2006 23:21:47 +0000 Subject: Bug 283582: Remove UserInGroup in favor of Bugzilla->user->in_group Patch By victory(_RSZ_) r=mkanat, a=myk --- enter_bug.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 1b15d55b0..a138d5edf 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -327,11 +327,11 @@ $vars->{'op_sys'} = get_legal_field_values('op_sys'); $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count(); $vars->{'assigned_to'} = formvalue('assigned_to'); -$vars->{'assigned_to_disabled'} = !UserInGroup('editbugs'); +$vars->{'assigned_to_disabled'} = !Bugzilla->user->in_group('editbugs'); $vars->{'cc_disabled'} = 0; $vars->{'qa_contact'} = formvalue('qa_contact'); -$vars->{'qa_contact_disabled'} = !UserInGroup('editbugs'); +$vars->{'qa_contact_disabled'} = !Bugzilla->user->in_group('editbugs'); $vars->{'cloned_bug_id'} = $cloned_bug_id; @@ -381,7 +381,7 @@ if ($cloned_bug_id) { if ( !($isprivate) || ( ( Bugzilla->params->{"insidergroup"} ) && - ( UserInGroup(Bugzilla->params->{"insidergroup"}) ) ) + ( Bugzilla->user->in_group(Bugzilla->params->{"insidergroup"}) ) ) ) { $vars->{'comment'} = $cloned_bug->{'longdescs'}->[0]->{'body'}; $vars->{'commentprivacy'} = $isprivate; @@ -505,7 +505,7 @@ foreach my $row (@$grouplist) { || ($membercontrol == CONTROLMAPMANDATORY) || (($othercontrol != CONTROLMAPSHOWN) && ($othercontrol != CONTROLMAPDEFAULT) - && (!UserInGroup($groupname))) + && (!Bugzilla->user->in_group($groupname))) ); my $check; @@ -532,7 +532,7 @@ foreach my $row (@$grouplist) { # Checkbox is checked by default if $control is a default state. $check = (($membercontrol == CONTROLMAPDEFAULT) || (($othercontrol == CONTROLMAPDEFAULT) - && (!UserInGroup($groupname)))); + && (!Bugzilla->user->in_group($groupname)))); } my $group = -- cgit v1.2.3-24-g4f1b