]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 385453: email_in.pl resets group restrictions - Patch by Frédéric Buclin <LpSol...
authorlpsolit%gmail.com <>
Thu, 16 Aug 2007 22:32:16 +0000 (22:32 +0000)
committerlpsolit%gmail.com <>
Thu, 16 Aug 2007 22:32:16 +0000 (22:32 +0000)
process_bug.cgi

index 2fa74dbfd0af142bc93217a154fc6d3ff8eb95b3..e5e873e8603176eba4cef5b31bfda258a55c81a9 100755 (executable)
@@ -1204,7 +1204,8 @@ foreach my $id (@idlist) {
         # When editing several bugs at once, only consider groups which
         # have been displayed.
         elsif (($user->in_group_id($gid) || $product_change)
-               && (defined $cgi->param('id') || defined $cgi->param("bit-$gid")))
+               && ((defined $cgi->param('id') && Bugzilla->usage_mode != USAGE_MODE_EMAIL)
+                   || defined $cgi->param("bit-$gid")))
         {
             if (!$cgi->param("bit-$gid")) {
                 delete $updated_groups{$gid};