Need to exit the loop when checking for ownership of multiple plans

This commit is contained in:
ghendricks%novell.com 2006-11-27 18:00:04 +00:00
Родитель d78c51cab4
Коммит f1d9bb2f64
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1346,6 +1346,7 @@ sub candelete {
my $own_all = 1;
foreach my $plan (@{$self->plans}){
$own_all == 0 if (Bugzilla->user->id != $plan->author->id);
last;
}
return 1 if $own_all;