From 27eb4b5c77ef844c49b14187871a000890c2b17e Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Fri, 5 Oct 2007 21:50:12 +0000 Subject: Bug 349567 – strict_isolation in post_bug should also check can_see_product. Patch by Marc Schumann ; r=LpSolit; a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 067dc484e..1e1dee712 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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); } } -- cgit v1.2.3-24-g4f1b