From cc69d134483d1e10423475735b1084535dd075b7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 12 Aug 2006 06:45:07 +0000 Subject: Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new Patch By Max Kanat-Alexander r=LpSolit, a=myk --- post_bug.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index be061b2f1..aac15f3bf 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -537,7 +537,10 @@ $dbh->do("UPDATE bugs SET creation_ts = ? WHERE bug_id = ?", $dbh->bz_unlock_tables(); -my $bug = new Bugzilla::Bug($id, $user->id); +my $bug = new Bugzilla::Bug($id); +# We don't have to check if the user can see the bug, because a user filing +# a bug can always see it. You can't change reporter_accessible until +# after the bug is filed. # Add an attachment if requested. if (defined($cgi->upload('data')) || $cgi->param('attachurl')) { -- cgit v1.2.3-24-g4f1b