From f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Nov 2009 16:00:10 +0000 Subject: Bug 505038: Use $user->is_insider instead of $user->in_group(Bugzilla->params->{'insidergroup'}) - Patch by XqueZme r/a=LpSolit --- importxml.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index bd4aee186..f5385d178 100755 --- a/importxml.pl +++ b/importxml.pl @@ -512,7 +512,7 @@ sub process_bug { $long_desc{'isprivate'} = $comment->{'att'}->{'isprivate'} || 0; # if one of the comments is private we need to set this flag - if ( $long_desc{'isprivate'} && $exporter->in_group($params->{'insidergroup'})) { + if ( $long_desc{'isprivate'} && $exporter->is_insider) { $private = 1; } my $data = $comment->field('thetext'); @@ -1198,7 +1198,7 @@ sub process_bug { $err .= "No attachment ID specified, dropping attachment\n"; next; } - if (!$exporter->in_group($params->{'insidergroup'}) && $att->{'isprivate'}){ + if (!$exporter->is_insider) && $att->{'isprivate'}){ $err .= "Exporter not in insidergroup and attachment marked private.\n"; $err .= " Marking attachment public\n"; $att->{'isprivate'} = 0; -- cgit v1.2.3-24-g4f1b