Commit 4d63354a authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 565790: Unprivileged users cannot create bugs anymore

r/a=mkanat
parent 5fcfa9bb
...@@ -548,9 +548,8 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status'); ...@@ -548,9 +548,8 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status');
# If the user has no privs... # If the user has no privs...
unless ($has_editbugs || $has_canconfirm) { unless ($has_editbugs || $has_canconfirm) {
# ... use UNCONFIRMED if available, else use the first status of the list. # ... use UNCONFIRMED if available, else use the first status of the list.
my $bug_status = (grep { $_->name eq 'UNCONFIRMED' } @statuses) my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses;
? 'UNCONFIRMED' : $statuses[0]->name; @statuses = ($unconfirmed || $statuses[0]);
@statuses = ($bug_status);
} }
$vars->{'bug_status'} = \@statuses; $vars->{'bug_status'} = \@statuses;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment