]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 349567 รข\80\93 strict_isolation in post_bug should also check can_see_product.
authorwurblzap%gmail.com <>
Fri, 5 Oct 2007 21:50:12 +0000 (21:50 +0000)
committerwurblzap%gmail.com <>
Fri, 5 Oct 2007 21:50:12 +0000 (21:50 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>;
r=LpSolit; a=LpSolit

Bugzilla/Bug.pm

index 067dc484e585e93b4edf36458a77b97de1b4d79c..1e1dee712a611da3e7ec094d54340cd59d9d3c56 100755 (executable)
@@ -1175,7 +1175,8 @@ sub _check_strict_isolation {
     my @blocked_users;
     foreach my $pid (keys %unique_users) {
         my $related_user = Bugzilla::User->new($pid);
-        if (!$related_user->can_edit_product($product->id)) {
+        if (!$related_user->can_edit_product($product->id) ||
+            !$related_user->can_see_product($product->id)) {
             push (@blocked_users, $related_user->login);
         }
     }