diff options
author | lpsolit%gmail.com <> | 2009-11-10 16:00:10 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-11-10 16:00:10 +0000 |
commit | f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4 (patch) | |
tree | a9f9024a5a0f841427a8a7235a4ee62eff819d29 /importxml.pl | |
parent | Bug 472217: Create a Bugzilla::Comment object and eliminate GetComments (diff) | |
download | bugzilla-f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4.tar.gz bugzilla-f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4.tar.bz2 bugzilla-f7b1e5c5e27780f4bb1be7c9a44f1a91024473e4.zip |
Bug 505038: Use $user->is_insider instead of $user->in_group(Bugzilla->params->{'insidergroup'}) - Patch by XqueZme <xquezme@gmail.com> r/a=LpSolit
Diffstat (limited to 'importxml.pl')
-rwxr-xr-x | importxml.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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; |