diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-05-14 12:31:18 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-05-14 12:31:18 +0200 |
commit | 4d63354a757f487a391653a072661044d964e91f (patch) | |
tree | 0af043be5421d204a2f3be9d228f68cbacf2b693 | |
parent | 5fcfa9bb89f95849ffdb44df4f9e68a6032a7288 (diff) | |
download | bugzilla-4d63354a757f487a391653a072661044d964e91f.tar.gz bugzilla-4d63354a757f487a391653a072661044d964e91f.tar.xz |
Bug 565790: Unprivileged users cannot create bugs anymore
r/a=mkanat
-rwxr-xr-x | enter_bug.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index d85a9f060..4aa6a29d9 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -548,9 +548,8 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status'); # If the user has no privs... unless ($has_editbugs || $has_canconfirm) { # ... use UNCONFIRMED if available, else use the first status of the list. - my $bug_status = (grep { $_->name eq 'UNCONFIRMED' } @statuses) - ? 'UNCONFIRMED' : $statuses[0]->name; - @statuses = ($bug_status); + my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses; + @statuses = ($unconfirmed || $statuses[0]); } $vars->{'bug_status'} = \@statuses; |