зеркало из https://github.com/mozilla/gecko-dev.git
Need to exit the loop when checking for ownership of multiple plans
This commit is contained in:
Родитель
d78c51cab4
Коммит
f1d9bb2f64
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче